diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/channels.h | 4 | ||||
-rw-r--r-- | include/modules.h | 6 |
2 files changed, 7 insertions, 3 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 */ diff --git a/include/modules.h b/include/modules.h index 8e2746bf0..57fbc03b6 100644 --- a/include/modules.h +++ b/include/modules.h @@ -74,7 +74,7 @@ enum TargetTypeFlags { * ipv4 servers, so this value will be ten times as * high on ipv6 servers. */ -#define NATIVE_API_VERSION 11004 +#define NATIVE_API_VERSION 11005 #ifdef IPV6 #define API_VERSION (NATIVE_API_VERSION * 10) #else @@ -613,7 +613,7 @@ class Module : public Extensible * @param status The status being used, e.g. PRIVMSG @#chan has status== '@', 0 to send to everyone. * @return 1 to deny the NOTICE, 0 to allow it */ - virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text,char status); + virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text,char status, CUList &exempt_list); /** Called whenever a user is about to NOTICE A user or a channel, before any processing is done. * Returning any nonzero value from this function stops the process immediately, causing no @@ -632,7 +632,7 @@ class Module : public Extensible * @param status The status being used, e.g. PRIVMSG @#chan has status== '@', 0 to send to everyone. * @return 1 to deny the NOTICE, 0 to allow it */ - virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text,char status); + virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text,char status, CUList &exempt_list); /** Called before any nickchange, local or remote. This can be used to implement Q-lines etc. * Please note that although you can see remote nickchanges through this function, you should |