1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 18:26:39 +02:00

Prevent chankill from akilling my clients

This commit is contained in:
Adam
2011-10-18 12:18:18 -04:00
parent eb5b5f97d1
commit fc16746352
+2 -2
View File
@@ -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());