diff options
author | Adam <Adam@anope.org> | 2013-11-01 01:52:53 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-11-01 02:04:21 -0400 |
commit | 04e7fa493a6b5dd4b5bcc11463897644c792d025 (patch) | |
tree | 5be508f45e10770edd69762f9b415e9666f0cddd /src/channels.cpp | |
parent | f7692ec77fec2222a39771cd3582c10bf9beedf4 (diff) |
Don't take modes in SetCorrectModes if the user has the ME privilege
Diffstat (limited to 'src/channels.cpp')
-rw-r--r-- | src/channels.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 91c902206..133a58cda 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -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") |