diff options
author | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-03-24 17:13:43 +0000 |
---|---|---|
committer | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-03-24 17:13:43 +0000 |
commit | 97d1b1791c4af29212cd647c2a327e63f05ab008 (patch) | |
tree | 0f03bf114555c6eaf0ff550e0c36558052eb681d | |
parent | d129d452d391e56284672afee74ca90dee0e6580 (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
-rw-r--r-- | src/modules/m_showwhois.cpp | 15 |
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 *) ¶ms, NULL, "send_push"); + ev.Send(ServerInstance); + } } } |