X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_testcommand.cpp;h=205e285cfeda5576955f64c3b9645a9f192c11cd;hb=4cb2be033bbb0eafc7ee4fa579daf7ccaca8860b;hp=15405d80c185fb806913ea6393fa529f89dc1dd6;hpb=a5a8764bfe85e208a622a86295bdf56da575f21c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_testcommand.cpp b/src/modules/m_testcommand.cpp index 15405d80c..205e285cf 100644 --- a/src/modules/m_testcommand.cpp +++ b/src/modules/m_testcommand.cpp @@ -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: * * @@ -28,7 +28,7 @@ Server *Srv; class cmd_woot : public command_t { public: - cmd_woot () : command_t("WOOT", 0, 0); + cmd_woot () : command_t("WOOT", 0, 0) { this->source = "m_testcommand.so"; } @@ -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 ¶ms) { @@ -119,11 +124,6 @@ class ModuleTestCommand : public Module { return Version(1,0,0,0,VF_STATIC|VF_VENDOR); } - - virtual void OnUserConnect(userrec* user) - { - } - };