]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_satopic.cpp
m_satopic Use WriteGlobalSno instead of writing the same thing with SNO->WriteToSnoMa...
[user/henk/code/inspircd.git] / src / modules / m_satopic.cpp
index bf65cc5d5e9ab2a1e61b0c1380b19e3e091d1ee8..a0e3319af25d95d44e7df7e1143748b07823c1af 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;
                }