diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mode.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/include/mode.h b/include/mode.h index cfac562e6..e692c5345 100644 --- a/include/mode.h +++ b/include/mode.h @@ -45,17 +45,6 @@ enum ModeAction { MODEACTION_ALLOW = 1 /* Allow the mode */ }; -class ModeOutput -{ - private: - std::string par; - ModeAction act; - public: - ModeOutput(std::string parameter, ModeAction action); - ModeAction GetAction(); - std::string& GetParameter(); -}; - class ModeHandler { char mode; @@ -74,7 +63,7 @@ class ModeHandler int GetNumParams(); char GetModeChar(); - virtual ModeOutput OnModeChange(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter, bool adding); + virtual ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); /* Can change the mode parameter as its a ref */ virtual void DisplayList(userrec* user, chanrec* channel); virtual bool CheckTimeStamp(time_t theirs, time_t ours, const std::string &their_param, const std::string &our_param, chanrec* channel); }; @@ -91,7 +80,7 @@ class ModeWatcher char GetModeChar(); ModeType GetModeType(); - virtual bool BeforeMode(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter, bool adding); + virtual bool BeforeMode(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); /* Can change the mode parameter */ virtual void AfterMode(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter, bool adding); }; |