support user
(as well as cuser
) for user object mask banning
This commit is contained in:
parent
fe4972bc03
commit
db2f27a771
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
args=args)
|
args=args)
|
||||||
|
|
||||||
def _mask_spec(self, channel, spec):
|
def _mask_spec(self, channel, spec):
|
||||||
if spec[0] == "cuser":
|
if spec[0] in ["user", "cuser"]:
|
||||||
return [self._get_hostmask(channel, spec[1])]
|
return [self._get_hostmask(channel, spec[1])]
|
||||||
elif spec[0] == "cmask":
|
elif spec[0] == "cmask":
|
||||||
return [self._get_hostmask(channel, u) for u in spec[1]]
|
return [self._get_hostmask(channel, u) for u in spec[1]]
|
||||||
|
|
Loading…
Reference in a new issue