From 2e52ff280dca14d1598b84fab7a8c2e93fa30910 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 26 Nov 2006 18:04:47 +0000 Subject: 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 --- include/channels.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/channels.h') 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 */ -- cgit v1.2.3