From d3711a639fc40e2aa44834b8e396f6522dab4765 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 25 Feb 2020 11:32:40 +0000 Subject: [PATCH] only voice/op people that dont have it already --- modules/channel_op.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: