summaryrefslogtreecommitdiff
path: root/src/modules/m_showwhois.cpp
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-24 17:13:43 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-24 17:13:43 +0000
commit97d1b1791c4af29212cd647c2a327e63f05ab008 (patch)
tree0f03bf114555c6eaf0ff550e0c36558052eb681d /src/modules/m_showwhois.cpp
parentd129d452d391e56284672afee74ca90dee0e6580 (diff)
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
Diffstat (limited to 'src/modules/m_showwhois.cpp')
-rw-r--r--src/modules/m_showwhois.cpp15
1 files changed, 14 insertions, 1 deletions
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<std::string> 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 *) &params, NULL, "send_push");
+ ev.Send(ServerInstance);
+ }
}
}