From fe4001942d2b82566133099388c0908e10223c87 Mon Sep 17 00:00:00 2001 From: om Date: Mon, 4 Aug 2008 17:43:15 +0000 Subject: Add optional 3rd parameter to Channel::SetTopic() which overrides all access checks. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10085 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/channels.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/channels.h') diff --git a/include/channels.h b/include/channels.h index 605ac8216..9c231008a 100644 --- a/include/channels.h +++ b/include/channels.h @@ -235,8 +235,9 @@ class CoreExport Channel : public Extensible /** 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. */ - int SetTopic(User *u, std::string &t); + int SetTopic(User *u, std::string &t, bool forceset = false); /** Obtain the channel "user counter" * This returns the channel reference counter, which is initialized -- cgit v1.2.3