diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-09 20:50:12 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-09 20:50:12 +0000 |
commit | 87f5ef38db9c47f04e76578d781e067c97e7096c (patch) | |
tree | 85a4bf656dfc36d05b930cbb1894cee888f2a60e /include | |
parent | 772d6f16c0c474d2b66121c618c0273c26ca574e (diff) |
Om's way is better and lets watchers change mode parameters for the modes theyre watching
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3856 e03df62e-2008-0410-955e-edbf42e46eb7
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); }; |