mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-26 20:52:45 +01:00
match_host: stop implicitly coersing target nicks to UIDs
This commit is contained in:
parent
1852ff5774
commit
798fc7b0bf
@ -1360,10 +1360,6 @@ class PyLinkNetworkCoreWithUtils(PyLinkNetworkCore):
|
|||||||
and the 'ip' option is enabled, the host portion of the glob is also matched as a CIDR
|
and the 'ip' option is enabled, the host portion of the glob is also matched as a CIDR
|
||||||
range.
|
range.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Try to convert target into a UID. If this fails, it's probably a hostname.
|
|
||||||
target = self.nick_to_uid(target) or target
|
|
||||||
|
|
||||||
# Allow queries like !$exttarget to invert the given match.
|
# Allow queries like !$exttarget to invert the given match.
|
||||||
invert = glob.startswith('!')
|
invert = glob.startswith('!')
|
||||||
if invert:
|
if invert:
|
||||||
|
Loading…
Reference in New Issue
Block a user