mirror of
https://github.com/anope/anope.git
synced 2026-07-02 23:43:12 +02:00
Don't take modes in SetCorrectModes if the user has the ME privilege
This commit is contained in:
+1
-1
@@ -822,7 +822,7 @@ void Channel::SetCorrectModes(User *user, bool give_modes)
|
||||
given = true;
|
||||
}
|
||||
}
|
||||
else if (take_modes && !has_priv)
|
||||
else if (take_modes && !has_priv && !u_access.HasPriv(cm->name + "ME"))
|
||||
{
|
||||
/* Only remove modes if they are > voice */
|
||||
if (cm->name == "VOICE")
|
||||
|
||||
Reference in New Issue
Block a user