1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 11:46:37 +02:00

Add an opertype priv "protected" to not allow services to kick a user.

Also classify ulines as protected
This commit is contained in:
Adam
2014-02-09 18:45:43 -05:00
parent f6b8596c7b
commit 6d61a84286
5 changed files with 8 additions and 17 deletions
+1 -8
View File
@@ -727,11 +727,7 @@ bool Channel::Kick(BotInfo *bi, User *u, const char *reason, ...)
vsnprintf(buf, BUFSIZE - 1, reason, args);
va_end(args);
/* May not kick ulines */
if (u->server->IsULined())
return false;
/* Do not kick protected clients */
/* Do not kick protected clients or Ulines */
if (u->IsProtected())
return false;
@@ -863,9 +859,6 @@ bool Channel::CheckKick(User *user)
/* We don't enforce services restrictions on clients on ulined services
* as this will likely lead to kick/rejoin floods. ~ Viper */
if (user->server->IsULined())
return false;
if (user->IsProtected())
return false;