Skip to content
Permalink
Browse files

Merge pull request #224 from genius3000/2.0+deoper_superadmin

Ensure SuperAdmin isn't left on when de-opering
  • Loading branch information...
Robby- committed Feb 14, 2019
2 parents e567cfd + 3872199 commit a2446b8d4b9ccf743bf6e4937fd2adf6465b6f0c
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/users.cpp
@@ -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();

0 comments on commit a2446b8

Please sign in to comment.
You can’t perform that action at this time.