summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-10 12:53:29 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-10 12:53:29 +0000
commite2ca8e613110d3976627e7da79c08dd3c144311e (patch)
treeac311edb45eec83d40086d967543330ddc4437b2
parentdb75baa96dae473941df5f3ac294479a87f15314 (diff)
Add interface to AddModeWatcher and DelModeWatcher into class Server
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4267 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/modules.h4
-rw-r--r--src/modules.cpp10
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);