diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-04 17:43:15 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-04 17:43:15 +0000 |
commit | fe4001942d2b82566133099388c0908e10223c87 (patch) | |
tree | 72580b3937b4cd2b251d74e36408fe76c2e83bbf /include | |
parent | 333b19d80c2255044cefc67148a19c06e13695bf (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.h | 3 |
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 |