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