X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_chgname.cpp;h=b336e97cf9fe0ec25060529a862237348e81d3ff;hb=551d687ec6d7ce44be35fae0dd7345fe73c4f63a;hp=3ce1da5ec6ca192de72355d129f1fe747c0856ef;hpb=e3e3a35899931d98e76023464f9b077b09ba828d;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_chgname.cpp b/src/modules/m_chgname.cpp index 3ce1da5ec..b336e97cf 100644 --- a/src/modules/m_chgname.cpp +++ b/src/modules/m_chgname.cpp @@ -29,6 +29,7 @@ class CommandChgname : public Command public: CommandChgname(Module* Creator) : Command(Creator,"CHGNAME", 2, 2) { + allow_empty_last_param = false; flags_needed = 'o'; syntax = " "; TRANSLATE3(TR_NICK, TR_TEXT, TR_END); @@ -74,7 +75,6 @@ class CommandChgname : public Command } }; - class ModuleChgName : public Module { CommandChgname cmd; @@ -89,10 +89,6 @@ public: ServerInstance->Modules->AddService(cmd); } - virtual ~ModuleChgName() - { - } - virtual Version GetVersion() { return Version("Provides support for the CHGNAME command", VF_OPTCOMMON | VF_VENDOR);