1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 19:36:39 +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
+2 -5
View File
@@ -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)