diff options
| author | 2013-08-19 19:11:02 +0200 | |
|---|---|---|
| committer | 2013-08-25 13:42:01 +0200 | |
| commit | d9d9cbe025f94523265daa72de7596467d71f5c8 (patch) | |
| tree | 3bd29833312c61949ddbbcb6cfa815c4de5781ce /src/modules/m_spanningtree/away.cpp | |
| parent | Clean 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/away.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/away.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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<std::string>& params) +CmdResult CommandAway::HandleRemote(RemoteUser* u, std::vector<std::string>& params) { - if (IS_SERVER(u)) - return CMD_INVALID; if (params.size()) { FOREACH_MOD(OnSetAway, (u, params[params.size() - 1])); |
