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 /src/helperfuncs.cpp | |
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 'src/helperfuncs.cpp')
-rw-r--r-- | src/helperfuncs.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 7eb4544fb..4475c169a 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -506,18 +506,18 @@ void InspIRCd::LoadAllModules() this->Log(DEFAULT,"Total loaded modules: %d", this->ModCount+1); } -void InspIRCd::SendWhoisLine(userrec* user, int numeric, const std::string &text) +void InspIRCd::SendWhoisLine(userrec* user, userrec* dest, int numeric, const std::string &text) { std::string copy_text = text; int MOD_RESULT = 0; - FOREACH_RESULT_I(this, I_OnWhoisLine, OnWhoisLine(user, numeric, copy_text)); + FOREACH_RESULT_I(this, I_OnWhoisLine, OnWhoisLine(user, dest, numeric, copy_text)); if (!MOD_RESULT) user->WriteServ("%d %s", numeric, copy_text.c_str()); } -void InspIRCd::SendWhoisLine(userrec* user, int numeric, const char* format, ...) +void InspIRCd::SendWhoisLine(userrec* user, userrec* dest, int numeric, const char* format, ...) { char textbuffer[MAXBUF]; va_list argsPtr; @@ -525,6 +525,6 @@ void InspIRCd::SendWhoisLine(userrec* user, int numeric, const char* format, ... vsnprintf(textbuffer, MAXBUF, format, argsPtr); va_end(argsPtr); - this->SendWhoisLine(user, numeric, std::string(textbuffer)); + this->SendWhoisLine(user, dest, numeric, std::string(textbuffer)); } |