3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-26 04:04:22 +01:00

match_host: remove deprecation notice for non-host globs

This is too flaky with commands taking arbitrary user inputs (e.g. opercmds/checkban)
This commit is contained in:
James Lu 2018-06-12 00:02:18 -07:00
parent 1b68bfadc6
commit deff6d077d

View File

@ -1350,9 +1350,6 @@ class PyLinkNetworkCoreWithUtils(PyLinkNetworkCore):
hosts.add(self.get_hostmask(target, realhost=True))
else: # We were given a host, use that.
if '@' not in text:
log.warning('(%s) Using match_host() on non-hostlike globs is deprecated as of 2.0-alpha4 - '
'use match_text() instead', self.name)
hosts = [target]
# Iterate over the hosts to match using ircmatch.