summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-07-07 16:36:57 +0200
committerattilamolnar <attilamolnar@hush.com>2012-07-07 16:37:11 +0200
commit8e62584e73a554f20b5d6fb470655e42e5c3d0f8 (patch)
treea7761c39deabb99f29ff96d6c734818ff233e103
parent1fe23633b78b836f6c906b651255c1bd169f3778 (diff)
m_satopic Use WriteGlobalSno instead of writing the same thing with SNO->WriteToSnoMask and PI->SendSNONotice
-rw-r--r--src/modules/m_satopic.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_satopic.cpp b/src/modules/m_satopic.cpp
index bf65cc5d5..a0e3319af 100644
--- a/src/modules/m_satopic.cpp
+++ b/src/modules/m_satopic.cpp
@@ -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;
}