summaryrefslogtreecommitdiff
path: root/include
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 /include
parent55dc6fe9e5a8944c5113ae55ea62a140ba47a40c (diff)
Always set the topic in Channel::SetTopic(), move access checks into cmd_topic
Diffstat (limited to 'include')
-rw-r--r--include/channels.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/channels.h b/include/channels.h
index 2aff3f7a8..566eb5cfb 100644
--- a/include/channels.h
+++ b/include/channels.h
@@ -142,11 +142,10 @@ class CoreExport Channel : public Extensible, public InviteBase
std::string GetModeParameter(ModeHandler* mode);
/** Sets the channel topic.
- * @param u The user setting the topic
- * @param t The topic to set it to. Non-const, as it may be modified by a hook.
- * @param forceset If set to true then all access checks will be bypassed.
+ * @param user The user setting the topic.
+ * @param topic The topic to set it to.
*/
- int SetTopic(User *u, std::string &t, bool forceset = false);
+ void SetTopic(User* user, const std::string& topic);
/** Obtain the channel "user counter"
* This returns the number of users on this channel