]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_satopic.cpp
Fix REMOVE maxparams
[user/henk/code/inspircd.git] / src / modules / m_satopic.cpp
index dfe1450512cbe56eb0d181162e02d855512f05e7..3a68a98d83067846e84803eae04ec893801077ee 100644 (file)
 class CommandSATopic : public Command
 {
  public:
-       CommandSATopic (InspIRCd* Instance, Module* Creator)
-               : Command(Instance,Creator,"SATOPIC", "o", 2, 2, false, 0)
+       CommandSATopic(Module* Creator) : Command(Creator,"SATOPIC", 2, 2)
        {
-               syntax = "<target> <topic>";
+               flags_needed = 'o'; Penalty = 0; syntax = "<target> <topic>";
        }
 
        CmdResult Handle (const std::vector<std::string>& parameters, User *user)
@@ -42,7 +41,7 @@ class CommandSATopic : public Command
                        ServerInstance->SNO->WriteToSnoMask('a', user->nick + " used SATOPIC on " + target->name + ", new topic: " + newTopic);
                        ServerInstance->PI->SendSNONotice("A", user->nick + " used SATOPIC on " + target->name + ", new topic: " + newTopic);
 
-                       return CMD_LOCALONLY;
+                       return CMD_SUCCESS;
                }
                else
                {
@@ -57,7 +56,7 @@ class ModuleSATopic : public Module
        CommandSATopic cmd;
  public:
        ModuleSATopic(InspIRCd* Me)
-       : Module(Me), cmd(Me, this)
+       : Module(Me), cmd(this)
        {
                ServerInstance->AddCommand(&cmd);
        }