diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/inspircd.h | 4 | ||||
-rw-r--r-- | include/modules.h | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index 1aead5d5e..3a752e21c 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -998,9 +998,9 @@ class InspIRCd : public classbase */ void Log(int level, const std::string &text); - void SendWhoisLine(userrec* user, int numeric, const std::string &text); + void SendWhoisLine(userrec* user, userrec* dest, int numeric, const std::string &text); - void SendWhoisLine(userrec* user, int numeric, const char* format, ...); + void SendWhoisLine(userrec* user, userrec* dest, int numeric, const char* format, ...); /** Begin execution of the server. * NOTE: this function NEVER returns. Internally, diff --git a/include/modules.h b/include/modules.h index 2d7e9f4ab..a92369854 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 11001 +#define NATIVE_API_VERSION 11002 #ifdef IPV6 #define API_VERSION (NATIVE_API_VERSION * 10) #else @@ -1293,12 +1293,13 @@ class Module : public Extensible * the values numeric and text, but you cannot change the user the * numeric is sent to. You may however change the user's userrec values. * @param user The user the numeric is being sent to + * @param dest The user being WHOISed * @param numeric The numeric of the line being sent * @param text The text of the numeric, including any parameters * @return nonzero to drop the line completely so that the user does not * receive it, or zero to allow the line to be sent. */ - virtual int OnWhoisLine(userrec* user, int &numeric, std::string &text); + virtual int OnWhoisLine(userrec* user, userrec* dest, int &numeric, std::string &text); }; |