aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/idle.cpp
diff options
context:
space:
mode:
authorGravatar attilamolnar2013-08-19 20:22:15 +0200
committerGravatar attilamolnar2013-08-27 15:33:05 +0200
commit7e7e773d4d43e68c18c19e2ec712f4250e5f756d (patch)
treea446c63b439f3854ad2da6d8bd8d4dce9715b38a /src/modules/m_spanningtree/idle.cpp
parentm_spanningtree Changes to TreeSocket::WriteLine() to avoid string copies (diff)
m_spanningtree Introduce command builders
Diffstat (limited to 'src/modules/m_spanningtree/idle.cpp')
-rw-r--r--src/modules/m_spanningtree/idle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/idle.cpp b/src/modules/m_spanningtree/idle.cpp
index 679948a51..d7c0cdf1b 100644
--- a/src/modules/m_spanningtree/idle.cpp
+++ b/src/modules/m_spanningtree/idle.cpp
@@ -59,11 +59,11 @@ CmdResult CommandIdle::HandleRemote(RemoteUser* issuer, std::vector<std::string>
else
idle = ((unsigned int) (ServerInstance->Time() - localtarget->idle_lastmsg));
- parameterlist reply;
+ CmdBuilder reply(params[0], "IDLE");
reply.push_back(issuer->uuid);
reply.push_back(ConvToStr(target->signon));
reply.push_back(ConvToStr(idle));
- Utils->DoOneToOne(params[0], "IDLE", reply, issuer->server);
+ reply.Unicast(issuer);
}
return CMD_SUCCESS;