3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

match_host: stop implicitly coersing target nicks to UIDs

This commit is contained in:
James Lu 2019-06-23 19:45:08 -07:00
parent 1852ff5774
commit 798fc7b0bf

View File

@ -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
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.
invert = glob.startswith('!')
if invert: