only voice/op people that dont have it already

This commit is contained in:
jesopo 2020-02-25 11:32:40 +00:00
parent a3ffc70bbc
commit d3711a639f

View file

@ -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: