From db75baa96dae473941df5f3ac294479a87f15314 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 10 Jul 2006 12:46:03 +0000 Subject: Added ModeParser::AddModeWatcher() and ModeParser::DelModeWatcher() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4266 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/mode.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'include') diff --git a/include/mode.h b/include/mode.h index 1c60678c5..9801f503d 100644 --- a/include/mode.h +++ b/include/mode.h @@ -315,6 +315,24 @@ class ModeParser * @return True if the mode was successfully added. */ bool AddMode(ModeHandler* mh, unsigned const char modeletter); + /** + * Add a mode watcher. + * A mode watcher is triggered before and after a mode handler is + * triggered. See the documentation of class ModeWatcher for more + * information. + * @param mw The ModeWatcher you want to add + * @return True if the ModeWatcher was added correctly + */ + bool AddModeWatcher(ModeWatcher* mw); + /** + * Delete a mode watcher. + * A mode watcher is triggered before and after a mode handler is + * triggered. See the documentation of class ModeWatcher for more + * information. + * @param mw The ModeWatcher you want to delete + * @return True if the ModeWatcher was deleted correctly + */ + bool DelModeWatcher(ModeWatcher* mw); /** * Process a set of mode changes from a server or user. * @param parameters The parameters of the mode change, in the format -- cgit v1.2.3