diff options
-rw-r--r-- | include/modules.h | 4 | ||||
-rw-r--r-- | src/modules.cpp | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h index 948339cb6..1ef03f4d3 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1427,6 +1427,10 @@ class Server : public classbase virtual bool AddMode(ModeHandler* mh, const unsigned char modechar); + virtual bool AddModeWatcher(ModeWatcher* mw); + + virtual bool DelModeWatcher(ModeWatcher* mw); + /** Adds a command to the command table. * This allows modules to add extra commands into the command table. You must place a function within your * module which is is of type handlerfunc: diff --git a/src/modules.cpp b/src/modules.cpp index a054e9b87..1e92e2bda 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -596,6 +596,16 @@ bool Server::AddMode(ModeHandler* mh, const unsigned char mode) return ServerInstance->ModeGrok->AddMode(mh,mode); } +bool Server::AddModeWatcher(ModeWatcher* mw) +{ + return ServerInstance->ModeGrok->AddModeWatcher(mw); +} + +bool Server::DelModeWatcher(ModeWatcher* mw) +{ + return ServerInstance->ModeGrok->DelModeWatcher(mw); +} + int Server::CountUsers(chanrec* c) { return usercount(c); |