diff options
| author | 2020-01-26 16:06:02 +0000 | |
|---|---|---|
| committer | 2020-01-26 16:06:02 +0000 | |
| commit | 174f0070ff26cabbedfb6184cb1e824abd818897 (patch) | |
| tree | bc566556345cbd297ea6915f3d96522bf045bfa2 /modules | |
| parent | .append() doesn't work on dict, use same code for missing optional (diff) | |
| signature | ||
find "word" type, not cuser (because i can be 'user')
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/channel_op.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/channel_op.py b/modules/channel_op.py index 0983f450..0205b22a 100644 --- a/modules/channel_op.py +++ b/modules/channel_op.py @@ -71,12 +71,12 @@ class Module(ModuleManager.BaseModule): return self._format_hostmask(user, format) def _ban(self, server, channel, target, allow_hostmask, time, add): - if target[0] == "cuser": - hostmask = self._get_hostmask(channel, target[1]) - else: + if target[0] == "word": if not allow_hostmask: raise utils.EventError("No such user") hostmask = target[1] + else: + hostmask = self._get_hostmask(channel, target[1]) if not add: channel.send_unban(hostmask) |
