diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/utils/irc/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/irc/__init__.py b/src/utils/irc/__init__.py index dd4fdaff..13414ed3 100644 --- a/src/utils/irc/__init__.py +++ b/src/utils/irc/__init__.py @@ -330,7 +330,8 @@ class BatchType(object): t = list(set([type])&self._names) return t[0] if t else None -def hostmask_match_many(hostmasks: typing.List[str], pattern: str) -> str: +def hostmask_match_many(hostmasks: typing.List[str], pattern: str + ) -> typing.Optional[str]: part1_out = [] for part1 in pattern.split("?"): part2_out = [] |
