From e752b60f6ce67665be8ceb5205a83e754212393c Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 19 May 2019 16:28:46 +0100 Subject: use fnmatchcase( so the strings are not case-"normalised" --- src/utils/irc/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils') diff --git a/src/utils/irc/__init__.py b/src/utils/irc/__init__.py index b9ebdf58..8972e800 100644 --- a/src/utils/irc/__init__.py +++ b/src/utils/irc/__init__.py @@ -305,4 +305,4 @@ class MessageTag(object): return tags[key[0]] if key else None def hostmask_match(hostmask: str, pattern: str) -> bool: - return fnmatch.fnmatch(hostmask, pattern) + return fnmatch.fnmatchcase(hostmask, pattern) -- cgit v1.3.1-10-gc9f91