mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
relay: migrate away from deprecated utils.isHostmask
This commit is contained in:
parent
9380336948
commit
979d5a48f1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user