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:
+2
-5
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user