]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_testcommand.cpp
Updated copyrights in headers etc using perl inplace edit
[user/henk/code/inspircd.git] / src / modules / m_testcommand.cpp
index 9e1da629afc07770568f636a7f4ba1cd40fd91f6..205e285cfeda5576955f64c3b9645a9f192c11cd 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
+ *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
  *                       E-mail:
  *                <brain@chatspike.net>
  *               <Craig@chatspike.net>
@@ -68,11 +68,16 @@ class ModuleTestCommand : public Module
                // anyone can issue the command, and the
                // command takes only one parameter.
                newcommand = new cmd_woot();
-               Srv->AddCommand(mycommand);
+               Srv->AddCommand(newcommand);
 
                // Add a mode +Z for channels with no parameters                
                Srv->AddExtendedMode('Z',MT_CHANNEL,false,1,0);
        }
+
+       void Implements(char* List)
+       {
+               List[I_OnExtendedMode] = List[I_OnUserJoin] = 1;
+       }
        
        virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params)
        {
@@ -119,11 +124,6 @@ class ModuleTestCommand : public Module
        {
                return Version(1,0,0,0,VF_STATIC|VF_VENDOR);
        }
-       
-       virtual void OnUserConnect(userrec* user)
-       {
-       }
-
 };