From d9d9cbe025f94523265daa72de7596467d71f5c8 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Mon, 19 Aug 2013 19:11:02 +0200 Subject: 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() --- src/modules/m_spanningtree/away.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/modules/m_spanningtree/away.cpp') diff --git a/src/modules/m_spanningtree/away.cpp b/src/modules/m_spanningtree/away.cpp index cf0c87ce4..7b151dfef 100644 --- a/src/modules/m_spanningtree/away.cpp +++ b/src/modules/m_spanningtree/away.cpp @@ -23,10 +23,8 @@ #include "utils.h" #include "commands.h" -CmdResult CommandAway::Handle(User* u, std::vector& params) +CmdResult CommandAway::HandleRemote(RemoteUser* u, std::vector& params) { - if (IS_SERVER(u)) - return CMD_INVALID; if (params.size()) { FOREACH_MOD(OnSetAway, (u, params[params.size() - 1])); -- cgit v1.3.1-10-gc9f91