summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-11-01 01:52:53 -0400
committerAdam <Adam@anope.org>2013-11-01 02:04:21 -0400
commit04e7fa493a6b5dd4b5bcc11463897644c792d025 (patch)
tree5be508f45e10770edd69762f9b415e9666f0cddd /src/channels.cpp
parentf7692ec77fec2222a39771cd3582c10bf9beedf4 (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.cpp2
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")