From 92cc388aebd55245b24aef5950afe845feffe9e2 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sun, 26 Jan 2014 13:05:09 +0100 Subject: ProtocolInterface::SendEncapsulatedData() changes - Pass command name and destination as real parameters - Allow callers to specify the command source - Send a SID instead of a server name if the target is a single server --- src/modules/m_showwhois.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/modules/m_showwhois.cpp') diff --git a/src/modules/m_showwhois.cpp b/src/modules/m_showwhois.cpp index 332752f93..ba17942cb 100644 --- a/src/modules/m_showwhois.cpp +++ b/src/modules/m_showwhois.cpp @@ -110,11 +110,9 @@ class ModuleShowwhois : public Module else { std::vector params; - params.push_back(dest->server->GetName()); - params.push_back("WHOISNOTICE"); params.push_back(dest->uuid); params.push_back(source->uuid); - ServerInstance->PI->SendEncapsulatedData(params); + ServerInstance->PI->SendEncapsulatedData(dest->server->GetName(), cmd.name, params); } } }; -- cgit v1.3.1-10-gc9f91