]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_satopic.cpp
Purge the old chanlog code from the module file.
[user/henk/code/inspircd.git] / src / modules / m_satopic.cpp
index bf65cc5d5e9ab2a1e61b0c1380b19e3e091d1ee8..c15c9e91bcb4e2e911e509c108f36b5d3240fc21 100644 (file)
@@ -44,8 +44,7 @@ class CommandSATopic : public Command
 
                        // 3rd parameter overrides access checks
                        target->SetTopic(user, newTopic, true);
-                       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);
+                       ServerInstance->SNO->WriteGlobalSno('a', user->nick + " used SATOPIC on " + target->name + ", new topic: " + newTopic);
 
                        return CMD_SUCCESS;
                }
@@ -64,14 +63,14 @@ class ModuleSATopic : public Module
        ModuleSATopic()
        : cmd(this)
        {
-               ServerInstance->AddCommand(&cmd);
        }
 
-       virtual ~ModuleSATopic()
+       void init() CXX11_OVERRIDE
        {
+               ServerInstance->Modules->AddService(cmd);
        }
 
-       virtual Version GetVersion()
+       Version GetVersion() CXX11_OVERRIDE
        {
                return Version("Provides a SATOPIC command", VF_VENDOR);
        }