summaryrefslogtreecommitdiff
path: root/src/modules/m_satopic.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-06-16 21:53:05 +0200
committerattilamolnar <attilamolnar@hush.com>2013-06-16 21:53:05 +0200
commita85bc774f9c4acbb2dbc1d9ddd02a460c5555391 (patch)
tree452977de6368f8e01e81d48f1484275be6f69fbe /src/modules/m_satopic.cpp
parent55dc6fe9e5a8944c5113ae55ea62a140ba47a40c (diff)
Always set the topic in Channel::SetTopic(), move access checks into cmd_topic
Diffstat (limited to 'src/modules/m_satopic.cpp')
-rw-r--r--src/modules/m_satopic.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/m_satopic.cpp b/src/modules/m_satopic.cpp
index c15c9e91b..56098635b 100644
--- a/src/modules/m_satopic.cpp
+++ b/src/modules/m_satopic.cpp
@@ -40,10 +40,8 @@ class CommandSATopic : public Command
if(target)
{
- std::string newTopic = parameters[1];
-
- // 3rd parameter overrides access checks
- target->SetTopic(user, newTopic, true);
+ const std::string& newTopic = parameters[1];
+ target->SetTopic(user, newTopic);
ServerInstance->SNO->WriteGlobalSno('a', user->nick + " used SATOPIC on " + target->name + ", new topic: " + newTopic);
return CMD_SUCCESS;