summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/override_whois.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-08-19 20:22:15 +0200
committerattilamolnar <attilamolnar@hush.com>2013-08-27 15:33:05 +0200
commit7e7e773d4d43e68c18c19e2ec712f4250e5f756d (patch)
treea446c63b439f3854ad2da6d8bd8d4dce9715b38a /src/modules/m_spanningtree/override_whois.cpp
parent27ecc025acf7b01f51b2ecc32c28180dc49d793c (diff)
m_spanningtree Introduce command builders
Diffstat (limited to 'src/modules/m_spanningtree/override_whois.cpp')
-rw-r--r--src/modules/m_spanningtree/override_whois.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree/override_whois.cpp b/src/modules/m_spanningtree/override_whois.cpp
index ec0ca9c5e..cb21f84b5 100644
--- a/src/modules/m_spanningtree/override_whois.cpp
+++ b/src/modules/m_spanningtree/override_whois.cpp
@@ -19,7 +19,7 @@
#include "inspircd.h"
#include "main.h"
-#include "utils.h"
+#include "commandbuilder.h"
ModResult ModuleSpanningTree::HandleRemoteWhois(const std::vector<std::string>& parameters, User* user)
{
@@ -28,9 +28,7 @@ ModResult ModuleSpanningTree::HandleRemoteWhois(const std::vector<std::string>&
User* remote = ServerInstance->FindNickOnly(parameters[1]);
if (remote && !IS_LOCAL(remote))
{
- parameterlist params;
- params.push_back(remote->uuid);
- Utils->DoOneToOne(user->uuid,"IDLE",params,remote->server);
+ CmdBuilder(user, "IDLE").push(remote->uuid).Unicast(remote);
return MOD_RES_DENY;
}
else if (!remote)