X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_setname.cpp;h=c0e32da7329a137c99dd3263f9280e24c4e287c9;hb=7107ec12d8640d35cfe3d5002db1bc1deb33625d;hp=00c76c848ee1acb67a156363eb14b383b4175993;hpb=2630a87bb13b089e6d0fdcff4bcd0f3a9612e52f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_setname.cpp b/src/modules/m_setname.cpp index 00c76c848..c0e32da73 100644 --- a/src/modules/m_setname.cpp +++ b/src/modules/m_setname.cpp @@ -20,9 +20,8 @@ class CommandSetname : public Command { public: - CommandSetname (InspIRCd* Instance) : Command(Instance,"SETNAME", 0, 1, 1) + CommandSetname(Module* Creator) : Command(Creator,"SETNAME", 1, 1) { - this->source = "m_setname.so"; syntax = ""; TRANSLATE2(TR_TEXT, TR_END); } @@ -47,7 +46,7 @@ class CommandSetname : public Command return CMD_SUCCESS; } - return CMD_LOCALONLY; + return CMD_SUCCESS; } }; @@ -56,8 +55,8 @@ class ModuleSetName : public Module { CommandSetname cmd; public: - ModuleSetName(InspIRCd* Me) - : Module(Me), cmd(Me) + ModuleSetName() + : cmd(this) { ServerInstance->AddCommand(&cmd); } @@ -68,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); } };