]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_samode.cpp
m_auditorium Switch to SimpleChannelModeHandler
[user/henk/code/inspircd.git] / src / modules / m_samode.cpp
index cd0417abaa5a5fb2209ca2a3383b3a54f17433cf..129ad3f7ba7c824f8639c496876f430883196722 100644 (file)
@@ -44,7 +44,7 @@ class CommandSamode : public Command
                                return CMD_FAILURE;
                }
                this->active = true;
-               ServerInstance->Parser->CallHandler("MODE", parameters, user);
+               ServerInstance->Modes->Process(parameters, user);
                if (ServerInstance->Modes->GetLastParse().length())
                        ServerInstance->SNO->WriteGlobalSno('a', user->nick + " used SAMODE: " +ServerInstance->Modes->GetLastParse());
                this->active = false;
@@ -61,11 +61,6 @@ class ModuleSaMode : public Module
        {
        }
 
-       void init() CXX11_OVERRIDE
-       {
-               ServerInstance->Modules->AddService(cmd);
-       }
-
        Version GetVersion() CXX11_OVERRIDE
        {
                return Version("Provides command SAMODE to allow opers to change modes on channels and users", VF_VENDOR);