From 97d1b1791c4af29212cd647c2a327e63f05ab008 Mon Sep 17 00:00:00 2001 From: special Date: Sat, 24 Mar 2007 17:13:43 +0000 Subject: m_showwhois now sends a message for remote whois as well git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6706 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_showwhois.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_showwhois.cpp b/src/modules/m_showwhois.cpp index 7dcfebdf6..7c35fe08e 100644 --- a/src/modules/m_showwhois.cpp +++ b/src/modules/m_showwhois.cpp @@ -87,7 +87,20 @@ class ModuleShowwhois : public Module { if ((dest->IsModeSet('W')) && (source != dest)) { - dest->WriteServ("NOTICE %s :*** %s (%s@%s) did a /whois on you.",dest->nick,source->nick,source->ident,source->host); + if (IS_LOCAL(dest)) + { + dest->WriteServ("NOTICE %s :*** %s (%s@%s) did a /whois on you.",dest->nick,source->nick,source->ident,source->host); + } + else + { + std::deque params; + params.push_back(dest->nick); + std::string msg = ":"; + msg = msg + dest->server + " NOTICE " + dest->nick + " :*** " + source->nick + " (" + source->ident + "@" + source->host + ") did a /whois on you."; + params.push_back(msg); + Event ev((char *) ¶ms, NULL, "send_push"); + ev.Send(ServerInstance); + } } } -- cgit v1.2.3