diff options
author | Adam <Adam@anope.org> | 2014-02-09 18:45:43 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-02-09 18:51:52 -0500 |
commit | 6d61a842866f3a32551f46c46609d688697f2f2e (patch) | |
tree | dfcc6b876368667e53e8751f62bda3ca1afa4dde /src/users.cpp | |
parent | f6b8596c7bd195bf8d933c5ee8d28e5393d832a7 (diff) |
Add an opertype priv "protected" to not allow services to kick a user.
Also classify ulines as protected
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/users.cpp b/src/users.cpp index 088aa5a67..b9564a2d5 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -642,12 +642,9 @@ ChanUserContainer *User::FindChannel(Channel *c) const return NULL; } -bool User::IsProtected() const +bool User::IsProtected() { - if (this->HasMode("PROTECTED") || this->HasMode("GOD")) - return true; - - return false; + return this->HasMode("PROTECTED") || this->HasMode("GOD") || this->HasPriv("protected") || (this->server && this->server->IsULined()); } void User::Kill(const MessageSource &source, const Anope::string &reason) |