summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-28 18:41:34 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-28 18:41:34 +0000
commit94db28f9b3667d2424d190a92c231e2f9ffe6f27 (patch)
treec89a4eba429be77320c6581ed942b55b0732d66e /include
parentb7c7e603e986e1191f3763634bf1ca78901a5c28 (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')
-rw-r--r--include/inspircd.h4
-rw-r--r--include/modules.h5
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);
};