aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/channel_op.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/channel_op.py b/modules/channel_op.py
index d47c9d30..e1b623e7 100644
--- a/modules/channel_op.py
+++ b/modules/channel_op.py
@@ -381,7 +381,8 @@ class Module(ModuleManager.BaseModule):
if is_mask:
args = [self._get_hostmask(spec[0], u) for u in users]
else:
- args = [u.nickname for u in users]
+ args = [
+ u.nickname for u in users if not spec[0].has_mode(u, mode)]
spec[0].send_modes(mode, True, args)
if not spec[1] == None: