summaryrefslogtreecommitdiff
path: root/src/modules/m_showwhois.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-04 13:12:10 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-04 13:12:10 +0000
commit59ca4eec57a9c8b37e79e3031c74b59d4803fc28 (patch)
treec6c721494286bf3c042eaacaa890be256bb16bcd /src/modules/m_showwhois.cpp
parente728d9abdfd0ea41ac249273842924fe6bce6d4d (diff)
Make all our modules use the new stuff rather than the send_ events
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9301 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_showwhois.cpp')
-rw-r--r--src/modules/m_showwhois.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/modules/m_showwhois.cpp b/src/modules/m_showwhois.cpp
index 9922cfe40..37492f670 100644
--- a/src/modules/m_showwhois.cpp
+++ b/src/modules/m_showwhois.cpp
@@ -88,13 +88,8 @@ class ModuleShowwhois : public Module
}
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);
+ std::string msg = std::string(":") + dest->server + " NOTICE " + dest->nick + " :*** " + source->nick + " (" + source->ident + "@" + source->host + ") did a /whois on you.";
+ ServerInstance->PI->PushToClient(dest, msg);
}
}
}