aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/pong.cpp
diff options
context:
space:
mode:
authorGravatar attilamolnar2013-08-19 19:11:02 +0200
committerGravatar attilamolnar2013-08-25 13:42:01 +0200
commitd9d9cbe025f94523265daa72de7596467d71f5c8 (patch)
tree3bd29833312c61949ddbbcb6cfa815c4de5781ce /src/modules/m_spanningtree/pong.cpp
parentClean up the protocol interface (diff)
m_spanningtree Allow server-to-server command handlers to specify whether they accept servers, remote users or both as the command source
To make life easier for handlers accepting servers only as source, pass them a TreeServer* so they don't have to call FindServer()
Diffstat (limited to 'src/modules/m_spanningtree/pong.cpp')
-rw-r--r--src/modules/m_spanningtree/pong.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/pong.cpp b/src/modules/m_spanningtree/pong.cpp
index 006d51a10..ce1715874 100644
--- a/src/modules/m_spanningtree/pong.cpp
+++ b/src/modules/m_spanningtree/pong.cpp
@@ -24,9 +24,8 @@
#include "commands.h"
#include "utils.h"
-CmdResult CommandPong::Handle(User* user, std::vector<std::string>& params)
+CmdResult CommandPong::HandleServer(TreeServer* server, std::vector<std::string>& params)
{
- TreeServer* server = Utils->FindServer(user->server);
if (server->bursting)
{
ServerInstance->SNO->WriteGlobalSno('l', "Server \002%s\002 has not finished burst, forcing end of burst (send ENDBURST!)", server->GetName().c_str());