From 87f5ef38db9c47f04e76578d781e067c97e7096c Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 9 Apr 2006 20:50:12 +0000 Subject: 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 --- include/mode.h | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'include/mode.h') 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); }; -- cgit v1.2.3