diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-28 18:41:34 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-28 18:41:34 +0000 |
commit | 94db28f9b3667d2424d190a92c231e2f9ffe6f27 (patch) | |
tree | c89a4eba429be77320c6581ed942b55b0732d66e /include/modules.h | |
parent | b7c7e603e986e1191f3763634bf1ca78901a5c28 (diff) |
Add 'dest' parameter to OnWhoisLine, contains the user being whois'ed (we need this for +H and probably the stuff w00t is doing too)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5573 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 5 |
1 files changed, 3 insertions, 2 deletions
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); }; |