From 94db28f9b3667d2424d190a92c231e2f9ffe6f27 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 28 Oct 2006 18:41:34 +0000 Subject: 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 --- include/inspircd.h | 4 ++-- include/modules.h | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'include') 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); }; -- cgit v1.2.3