mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-23 19:19:31 +01:00
opercmds: migrate from utils.isServerName to irc.is_server_name
This commit is contained in:
parent
9e212fc0a4
commit
87fdb1dde1
@ -322,7 +322,7 @@ def jupe(irc, source, args):
|
|||||||
irc.error('Not enough arguments. Needs 1-2: servername, reason (optional).')
|
irc.error('Not enough arguments. Needs 1-2: servername, reason (optional).')
|
||||||
return
|
return
|
||||||
|
|
||||||
if not utils.isServerName(servername):
|
if not irc.is_server_name(servername):
|
||||||
irc.error("Invalid server name %r." % servername)
|
irc.error("Invalid server name %r." % servername)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user