X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_setname.cpp;h=c0e32da7329a137c99dd3263f9280e24c4e287c9;hb=7107ec12d8640d35cfe3d5002db1bc1deb33625d;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..c0e32da73 100644 --- a/src/modules/m_setname.cpp +++ b/src/modules/m_setname.cpp @@ -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, API_VERSION); } };