]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/modules.h
Aaaand, fix the typo
[user/henk/code/inspircd.git] / include / modules.h
index 948339cb6579654477b6d9dd0ee0057076b5c39f..3aab093e5011c52593ae79233b6aa40705388933 100644 (file)
@@ -268,7 +268,7 @@ class Event : public ModuleMessage
  * be loaded. If this happens, the error message returned by ModuleException::GetReason will be displayed to the user
  * attempting to load the module, or dumped to the console if the ircd is currently loading for the first time.
  */
-class ModuleException
+class ModuleException : public classbase
 {
  private:
        /** Holds the error message to be displayed
@@ -318,7 +318,7 @@ enum Implementation {       I_OnUserConnect, I_OnUserQuit, I_OnUserDisconnect, I_OnUse
  *  its methods will be called when irc server events occur. class inherited from module must be
  *  instantiated by the ModuleFactory class (see relevent section) for the module to be initialised.
  */
-class Module : public classbase
+class Module : public Extensible
 {
  public:
 
@@ -1210,7 +1210,7 @@ class Module : public classbase
  * output to users and other servers. All modules should instantiate at least one copy of this class,
  * and use its member functions to perform their tasks.
  */
-class Server : public classbase
+class Server : public Extensible
 {
  public:
        /** Default constructor.
@@ -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: