From b1df6b640f0a85b83f33819e0d5975b56123fcb0 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 23 Jan 2020 12:31:23 +0000 Subject: search for QUIET prefix anywhere, not just at the start of string --- modules/channel_op.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/channel_op.py b/modules/channel_op.py index d3c0b4d8..66574a57 100644 --- a/modules/channel_op.py +++ b/modules/channel_op.py @@ -407,7 +407,7 @@ class Module(ModuleManager.BaseModule): parsed_mask = utils.irc.hostmask_parse(mask) return list(utils.irc.hostmask_match_many(list, parsed_mask)) def _filter_prefix(self, prefix, list): - return [l for l in list if l.startswith(prefix)] + return [l for l in list if prefix in l] @utils.hook("received.command.clear") @utils.kwarg("channel_only", True) @@ -423,7 +423,7 @@ class Module(ModuleManager.BaseModule): if list_type[0] == "+": if list_type[1:]: - list_mode = type[1] + list_mode = list_type[1] else: raise utils.EventError("Please provide a list mode") -- cgit v1.3.1-10-gc9f91