summaryrefslogtreecommitdiff
path: root/include/builtinmodes.h
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-09-01 14:25:15 +0200
committerattilamolnar <attilamolnar@hush.com>2013-09-11 12:10:07 +0200
commit34fa5627de0a0431ca76f34445c680a76a9a7dc5 (patch)
tree4b63f6ce49983e161051f70e066ecf9bf974cc88 /include/builtinmodes.h
parent537ad4740afdbc656326cce766d1818cf5811c37 (diff)
Create a base class for prefix modes
Move Channel::SetPrefix() into Membership
Diffstat (limited to 'include/builtinmodes.h')
-rw-r--r--include/builtinmodes.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/include/builtinmodes.h b/include/builtinmodes.h
index b1e5c3ccd..ce73a7817 100644
--- a/include/builtinmodes.h
+++ b/include/builtinmodes.h
@@ -86,13 +86,10 @@ class ModeChannelNoExternal : public SimpleChannelModeHandler
/** Channel mode +o
*/
-class ModeChannelOp : public ModeHandler
+class ModeChannelOp : public PrefixMode
{
- private:
public:
ModeChannelOp();
- ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding);
- unsigned int GetPrefixRank();
};
/** Channel mode +p
@@ -127,13 +124,10 @@ class ModeChannelTopicOps : public SimpleChannelModeHandler
/** Channel mode +v
*/
-class ModeChannelVoice : public ModeHandler
+class ModeChannelVoice : public PrefixMode
{
- private:
public:
ModeChannelVoice();
- ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding);
- unsigned int GetPrefixRank();
};
/** User mode +i