summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-04 17:43:15 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-04 17:43:15 +0000
commitfe4001942d2b82566133099388c0908e10223c87 (patch)
tree72580b3937b4cd2b251d74e36408fe76c2e83bbf /include
parent333b19d80c2255044cefc67148a19c06e13695bf (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/channels.h3
1 files changed, 2 insertions, 1 deletions
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