mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-24 03:04:05 +01:00
bots: remove use of deprecated utils.isNick()
This commit is contained in:
parent
15a231a371
commit
48ea58c1fb
@ -134,7 +134,7 @@ def nick(irc, source, args):
|
|||||||
if newnick in ('0', u): # Allow /nick 0 to work
|
if newnick in ('0', u): # Allow /nick 0 to work
|
||||||
newnick = u
|
newnick = u
|
||||||
|
|
||||||
elif not utils.isNick(newnick):
|
elif not irc.is_nick(newnick):
|
||||||
irc.error('Invalid nickname %r.' % newnick)
|
irc.error('Invalid nickname %r.' % newnick)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user