]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_commonchans.cpp
Add comments
[user/henk/code/inspircd.git] / src / modules / m_commonchans.cpp
index 631fd2b2bc11dac5c009fa16137f62f6a8a7467f..52a0107178b54a98ff85ad0261bf72eafd448a1f 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -52,21 +52,17 @@ class ModulePrivacyMode : public Module
        ModulePrivacyMode(InspIRCd* Me) : Module(Me)
        {
                pm = new PrivacyMode(ServerInstance);
-               if (!ServerInstance->AddMode(pm))
+               if (!ServerInstance->Modes->AddMode(pm))
                        throw ModuleException("Could not add new modes!");
                Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice };
                ServerInstance->Modules->Attach(eventlist, this, 2);
        }
 
-       void Implements(char* List)
-       {
-               List[I_OnUserPreMessage] = List[I_OnUserPreNotice] = 1;
-       }
        
        virtual ~ModulePrivacyMode()
        {
                ServerInstance->Modes->DelMode(pm);
-               DELETE(pm);
+               delete pm;
        }
        
        virtual Version GetVersion()