X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_setname.cpp;h=5091e111006278240693ec7875092f7bd31b71e1;hb=f91a61fa22b239384c31526fd11da1e3030aaa96;hp=6cd94c98268b37e928cdc0f84586e5cd45e3eccf;hpb=24731c63b6320be22f7b3220236271fa7476b975;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_setname.cpp b/src/modules/m_setname.cpp index 6cd94c982..5091e1110 100644 --- a/src/modules/m_setname.cpp +++ b/src/modules/m_setname.cpp @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2009 InspIRCd Development Team + * InspIRCd: (C) 2002-2010 InspIRCd Development Team * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see @@ -20,7 +20,7 @@ class CommandSetname : public Command { public: - CommandSetname (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator,"SETNAME", 0, 1, 1) + CommandSetname(Module* Creator) : Command(Creator,"SETNAME", 1, 1) { syntax = ""; TRANSLATE2(TR_TEXT, TR_END); @@ -46,7 +46,7 @@ class CommandSetname : public Command return CMD_SUCCESS; } - return CMD_LOCALONLY; + return CMD_SUCCESS; } }; @@ -55,8 +55,8 @@ class ModuleSetName : public Module { CommandSetname cmd; public: - ModuleSetName(InspIRCd* Me) - : Module(Me), cmd(Me, this) + ModuleSetName() + : cmd(this) { ServerInstance->AddCommand(&cmd); } @@ -67,7 +67,7 @@ class ModuleSetName : public Module virtual Version GetVersion() { - return Version("$Id$", VF_VENDOR, API_VERSION); + return Version("Provides support for the SETNAME command", VF_VENDOR); } };