aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2020-01-25 11:22:10 +0000
committerGravatar jesopo2020-01-25 11:22:22 +0000
commitc9a4656163676d5e3027fe771352c3fe062bd17a (patch)
tree9fa0fc4250c21ef24a4858fd760da55b20a64bfd
parent!cunmute needs an `event` arg (diff)
signature
update mode list functions to not use `args`
-rw-r--r--modules/channel_op.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/channel_op.py b/modules/channel_op.py
index ddbb30bc..f8a49fae 100644
--- a/modules/channel_op.py
+++ b/modules/channel_op.py
@@ -404,14 +404,9 @@ class Module(ModuleManager.BaseModule):
else:
raise utils.EventError("Unknown type '%s'" % type)
- def _list_query_event(self, server, channel, type, mask):
- list_type = args[0]
+ def _list_query_event(self, server, channel, list_type, list_mask):
list_mode, list_prefix = self._type_to_mode(server, channel, list_type)
- list_mask = None
- if len(args) > 1:
- list_mask = args[1]
-
mode_list = list(channel.mode_lists[list_mode])
if list_prefix:
mode_list = self._filter_prefix(list_prefix, mode_list)