mirror of
https://github.com/anope/anope.git
synced 2026-06-27 16:46:39 +02:00
Ensure SuperAdmin isn't left on when de-opering
This commit is contained in:
@@ -561,8 +561,13 @@ void User::RemoveModeInternal(const MessageSource &source, UserMode *um)
|
||||
this->modes.erase(um->name);
|
||||
|
||||
if (um->name == "OPER")
|
||||
{
|
||||
--OperCount;
|
||||
|
||||
// Don't let people de-oper and remain a SuperAdmin
|
||||
this->super_admin = false;
|
||||
}
|
||||
|
||||
if (um->name == "CLOAK" || um->name == "VHOST")
|
||||
{
|
||||
this->vhost.clear();
|
||||
|
||||
Reference in New Issue
Block a user