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

changehost: migrate to irc.getHostmask

This commit is contained in:
James Lu 2016-05-01 15:05:30 -07:00
parent 917b0de596
commit 7b2319b7c5

View File

@ -38,8 +38,8 @@ def _changehost(irc, target, args):
return
# Match against both the user's IP and real host.
target_host = utils.getHostmask(irc, target, realhost=True)
target_ip = utils.getHostmask(irc, target, ip=True)
target_host = irc.getHostmask(target, realhost=True)
target_ip = irc.getHostmask(target, ip=True)
for host_glob, host_template in changehost_hosts.items():
if ircmatch.match(0, host_glob, target_host) or ircmatch.match(0, host_glob, target_ip):