From a85bc774f9c4acbb2dbc1d9ddd02a460c5555391 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 16 Jun 2013 21:53:05 +0200 Subject: Always set the topic in Channel::SetTopic(), move access checks into cmd_topic --- include/channels.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'include/channels.h') 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 -- cgit v1.2.3