1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 10:56:38 +02:00

Fix Channel::SetCorrectModes to never remove modes <= voice (currently secureops enforces everything, inclurding voice)

This commit is contained in:
Adam
2013-05-28 22:17:22 -04:00
parent 576aaff3da
commit 06bad31b18
+7 -1
View File
@@ -856,7 +856,13 @@ void Channel::SetCorrectModes(User *user, bool give_modes)
given = true;
}
else if (take_modes && !has_priv)
this->RemoveMode(NULL, cm, user->GetUID());
{
/* Only remove modes if they are > voice */
if (cm->name == "VOICE")
take_modes = false;
else
this->RemoveMode(NULL, cm, user->GetUID());
}
}
// Check mlock