]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_remove.cpp
Add 906, sasl aborted
[user/henk/code/inspircd.git] / src / modules / m_remove.cpp
index 8be08db6275cd326298291e2e8f80a63157c7bfb..868599948160ffb8a26406d97c6ef8b2c87b195f 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
@@ -69,7 +69,7 @@ class RemoveBase
                }
        }
        
-       CmdResult Handle (const char** parameters, int pcnt, User *user, bool neworder)
+       CmdResult Handle (const char* const* parameters, int pcnt, User *user, bool neworder)
        {
                const char* channame;
                const char* username;
@@ -213,7 +213,7 @@ class CommandRemove : public Command, public RemoveBase
                TRANSLATE4(TR_NICK, TR_TEXT, TR_TEXT, TR_END);
        }
        
-       CmdResult Handle (const char** parameters, int pcnt, User *user)
+       CmdResult Handle (const char* const* parameters, int pcnt, User *user)
        {
                return RemoveBase::Handle(parameters, pcnt, user, false);
        }
@@ -230,7 +230,7 @@ class CommandFpart : public Command, public RemoveBase
                syntax = "<channel> <nick> [<reason>]";
        }
 
-       CmdResult Handle (const char** parameters, int pcnt, User *user)
+       CmdResult Handle (const char* const* parameters, int pcnt, User *user)
        {
                return RemoveBase::Handle(parameters, pcnt, user, true);
        }
@@ -252,12 +252,10 @@ class ModuleRemove : public Module
                ServerInstance->AddCommand(mycommand);
                ServerInstance->AddCommand(mycommand2);
                OnRehash(NULL,"");
+               Implementation eventlist[] = { I_On005Numeric, I_OnRehash };
+               ServerInstance->Modules->Attach(eventlist, this, 2);
        }
 
-       void Implements(char* List)
-       {
-               List[I_On005Numeric] = List[I_OnRehash] = 1;
-       }
 
        virtual void On005Numeric(std::string &output)
        {