1
0
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:
Adam
2013-11-01 01:52:53 -04:00
parent f7692ec77f
commit 04e7fa493a
+1 -1
View File
@@ -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")