summaryrefslogtreecommitdiff
path: root/modules/commands/os_chankill.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-10-18 12:18:18 -0400
committerAdam <Adam@anope.org>2011-10-18 12:18:18 -0400
commitfc1674635234c4007e13e71be3ded989bf3594d9 (patch)
treee53a07c2fedc3a90846e81b0710f8d13a5a94788 /modules/commands/os_chankill.cpp
parenteb5b5f97d12921bcae665b67380c86e68b776dc6 (diff)
Prevent chankill from akilling my clients
Diffstat (limited to 'modules/commands/os_chankill.cpp')
-rw-r--r--modules/commands/os_chankill.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/os_chankill.cpp b/modules/commands/os_chankill.cpp
index 9e6d29dbd..53e7dfd9c 100644
--- a/modules/commands/os_chankill.cpp
+++ b/modules/commands/os_chankill.cpp
@@ -77,14 +77,14 @@ class CommandOSChanKill : public Command
{
UserContainer *uc = *it++;
- if (uc->user->HasMode(UMODE_OPER))
+ if (uc->user->server == Me || uc->user->HasMode(UMODE_OPER))
continue;
akills->Add("*@" + uc->user->host, u->nick, expires, realreason);
akills->Check(uc->user);
}
- Log(LOG_ADMIN, u, this) << "(" << realreason << ")";
+ Log(LOG_ADMIN, u, this) << "on " << c->name << " (" << realreason << ")";
}
else
source.Reply(CHAN_X_NOT_IN_USE, channel.c_str());