3
0
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:
James Lu 2017-11-07 19:19:00 -08:00
parent 15a231a371
commit 48ea58c1fb

View File

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