update mode list functions to not use args

This commit is contained in:
jesopo 2020-01-25 11:22:10 +00:00
parent 50f7985c6d
commit c9a4656163

View file

@ -404,14 +404,9 @@ class Module(ModuleManager.BaseModule):
else: else:
raise utils.EventError("Unknown type '%s'" % type) raise utils.EventError("Unknown type '%s'" % type)
def _list_query_event(self, server, channel, type, mask): def _list_query_event(self, server, channel, list_type, list_mask):
list_type = args[0]
list_mode, list_prefix = self._type_to_mode(server, channel, list_type) 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]) mode_list = list(channel.mode_lists[list_mode])
if list_prefix: if list_prefix:
mode_list = self._filter_prefix(list_prefix, mode_list) mode_list = self._filter_prefix(list_prefix, mode_list)