summaryrefslogtreecommitdiff
path: root/include/channels.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-26 18:04:47 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-26 18:04:47 +0000
commit2e52ff280dca14d1598b84fab7a8c2e93fa30910 (patch)
treeb61c54d4e0921b6349ff6b5aeb36008e52973076 /include/channels.h
parent69488d0a42ae22d1cf39244100403b63075ad4c3 (diff)
Add extra parameter to OnUserPreNotice and OnUserPrePrivmsg, CUList &exempt_list, a list of users NOT to write to. By default it just contains the sender, you can add more.
This also bumps the module api version by one. added "CUList fixme" to peaveys module just so it builds, as this will be refactored to use the new feature that was just added :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5806 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/channels.h')
-rw-r--r--include/channels.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/channels.h b/include/channels.h
index 648723b09..70e5c2233 100644
--- a/include/channels.h
+++ b/include/channels.h
@@ -416,6 +416,8 @@ class chanrec : public Extensible
*/
void WriteAllExceptSender(userrec* user, bool serversource, char status, char* text, ...);
+ void WriteAllExcept(userrec* user, bool serversource, char status, CUList &except_list, char* text, ...);
+
/** Write to all users on a channel except a specific user, using std::string for text
* @param user User whos details to prefix the line with, and to omit from receipt of the message
* @param serversource If this parameter is true, use the local server name as the source of the text, otherwise,
@@ -425,6 +427,8 @@ class chanrec : public Extensible
*/
void WriteAllExceptSender(userrec* user, bool serversource, char status, const std::string& text);
+ void WriteAllExcept(userrec* user, bool serversource, char status, CUList &except_list, const std::string& text);
+
/** Returns the maximum number of bans allowed to be set on this channel
* @return The maximum number of bans allowed
*/