use fnmatchcase( so the strings are not case-"normalised"

This commit is contained in:
jesopo 2019-05-19 16:28:46 +01:00
parent c607a0e67c
commit e752b60f6c

View file

@ -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)