From 7b2319b7c57c42e79a51c381da462287773a3906 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 1 May 2016 15:05:30 -0700 Subject: [PATCH] changehost: migrate to irc.getHostmask --- plugins/changehost.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/changehost.py b/plugins/changehost.py index 6874fe2..fbeb07f 100644 --- a/plugins/changehost.py +++ b/plugins/changehost.py @@ -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):