aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-05-19 16:28:46 +0100
committerGravatar jesopo2019-05-19 16:28:46 +0100
commite752b60f6ce67665be8ceb5205a83e754212393c (patch)
tree2ead3879d969e1901749c4797503dd76d6f9a40f
parentImplement utils.irc.hostmask_match for glob-like hostmask matching (diff)
signature
use fnmatchcase( so the strings are not case-"normalised"
-rw-r--r--src/utils/irc/__init__.py2
1 files changed, 1 insertions, 1 deletions
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)