From 979d5a48f1be230d39f738ed0aeaa0a05f3ea703 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 30 Aug 2017 21:09:19 -0700 Subject: [PATCH] relay: migrate away from deprecated utils.isHostmask --- plugins/relay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/relay.py b/plugins/relay.py index fdd86ca..6d4f7d3 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -957,7 +957,7 @@ def get_supported_cmodes(irc, remoteirc, channel, modes): else: mode_parse_aborted = True else: - if name in ('ban', 'banexception', 'invex', 'quiet') and not utils.isHostmask(arg): + if name in ('ban', 'banexception', 'invex', 'quiet') and not remoteirc.is_hostmask(arg): # Don't add unsupported bans that don't match n!u@h syntax. log.debug("(%s) relay.get_supported_cmodes: skipping unsupported extban/mode (%r, %r) because it doesn't match nick!user@host.", irc.name, modechar, arg)