summaryrefslogtreecommitdiff
path: root/modules/commands/bs_kick.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 /modules/commands/bs_kick.cpp
parentf6b8596c7bd195bf8d933c5ee8d28e5393d832a7 (diff)
Add an opertype priv "protected" to not allow services to kick a user.
Also classify ulines as protected
Diffstat (limited to 'modules/commands/bs_kick.cpp')
-rw-r--r--modules/commands/bs_kick.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/commands/bs_kick.cpp b/modules/commands/bs_kick.cpp
index 6c31f93cf..c08376e3c 100644
--- a/modules/commands/bs_kick.cpp
+++ b/modules/commands/bs_kick.cpp
@@ -1038,8 +1038,8 @@ class BSKick : public Module
void check_ban(ChannelInfo *ci, User *u, KickerData *kd, int ttbtype)
{
- /* Don't ban ulines */
- if (u->server->IsULined())
+ /* Don't ban ulines or protected users */
+ if (u->IsProtected())
return;
BanData::Data &bd = this->GetBanData(u, ci->c);
@@ -1065,7 +1065,7 @@ class BSKick : public Module
va_list args;
char buf[1024];
- if (!ci || !ci->bi || !ci->c || !u || u->server->IsULined() || !ci->c->FindUser(u))
+ if (!ci || !ci->bi || !ci->c || !u || u->IsProtected() || !ci->c->FindUser(u))
return;
Anope::string fmt = Language::Translate(u, message);