aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/away.cpp
diff options
context:
space:
mode:
authorGravatar attilamolnar2012-11-19 03:37:59 +0100
committerGravatar attilamolnar2012-12-15 19:47:40 +0100
commite3e3a35899931d98e76023464f9b077b09ba828d (patch)
tree5a4dbe8907a2bd25e1ac5a72ca5a182efdae7041 /src/modules/m_spanningtree/away.cpp
parentRemove ServerLimits::Finalise(), it's completely wrong (diff)
Add IS_SERVER() and REG_ALL checks to (mostly oper only) commands taking a target nickname
If a SID was passed as the target user parameter or when it's an unregistered user reply with the "no such nick" (or the moral equivalent) message
Diffstat (limited to 'src/modules/m_spanningtree/away.cpp')
-rw-r--r--src/modules/m_spanningtree/away.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/away.cpp b/src/modules/m_spanningtree/away.cpp
index 3b6d44f0f..ed97c48cd 100644
--- a/src/modules/m_spanningtree/away.cpp
+++ b/src/modules/m_spanningtree/away.cpp
@@ -27,7 +27,7 @@
bool TreeSocket::Away(const std::string &prefix, parameterlist &params)
{
User* u = ServerInstance->FindNick(prefix);
- if (!u)
+ if ((!u) || (IS_SERVER(u)))
return true;
if (params.size())
{