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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user