summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-02-09 18:45:43 -0500
committerAdam <Adam@anope.org>2014-02-09 18:51:52 -0500
commit6d61a842866f3a32551f46c46609d688697f2f2e (patch)
treedfcc6b876368667e53e8751f62bda3ca1afa4dde /src/channels.cpp
parentf6b8596c7bd195bf8d933c5ee8d28e5393d832a7 (diff)
Add an opertype priv "protected" to not allow services to kick a user.
Also classify ulines as protected
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index fe0e0600b..072634253 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -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;