aboutsummaryrefslogtreecommitdiff
path: root/src/utils/irc.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/irc.py')
-rw-r--r--src/utils/irc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/irc.py b/src/utils/irc.py
index 7194663f..373f3930 100644
--- a/src/utils/irc.py
+++ b/src/utils/irc.py
@@ -284,7 +284,7 @@ def hostmask_parse(hostmask: str):
return HostmaskPattern(hostmask, re.compile(".".join(part1_out)))
def hostmask_match_many(hostmasks: typing.List[str], pattern: HostmaskPattern,
- ) -> typing.Optional[str]:
+ ) -> typing.Generator[str, None, None]:
for hostmask in hostmasks:
if pattern.match(hostmask):
yield hostmask