X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_samode.cpp;h=9b71992a60888f04f8b27652d7b0e77b725e9048;hb=4d41afdc2ecf36017154e7a460457c076c8aaa16;hp=10d05e39710d669e0a265a9637b7e85905e18fb2;hpb=ac7defcd3e52695dcf5e5150e9fe3e1624205e64;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp index 10d05e397..9b71992a6 100644 --- a/src/modules/m_samode.cpp +++ b/src/modules/m_samode.cpp @@ -32,6 +32,7 @@ class CommandSamode : public Command bool active; CommandSamode(Module* Creator) : Command(Creator,"SAMODE", 2) { + allow_empty_last_param = false; flags_needed = 'o'; Penalty = 0; syntax = " {}"; active = false; } @@ -58,7 +59,7 @@ class ModuleSaMode : public Module void init() { - ServerInstance->AddCommand(&cmd); + ServerInstance->Modules->AddService(cmd); ServerInstance->Modules->Attach(I_OnPreMode, this); }