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

relay: migrate away from deprecated utils.isHostmask

This commit is contained in:
James Lu 2017-08-30 21:09:19 -07:00
parent 9380336948
commit 979d5a48f1

View File

@ -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)