From c9a4656163676d5e3027fe771352c3fe062bd17a Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 25 Jan 2020 11:22:10 +0000 Subject: [PATCH] update mode list functions to not use `args` --- modules/channel_op.py | 7 +------ 1 file changed, 1 insertion(+), 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)