1
0
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:
Matt Schatz
2018-07-14 17:36:16 -06:00
parent 368300d319
commit 38721993f1
+5
View File
@@ -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();