diff --git a/plugins/bots.py b/plugins/bots.py index 6eb0d71..64612f2 100644 --- a/plugins/bots.py +++ b/plugins/bots.py @@ -134,7 +134,7 @@ def nick(irc, source, args): if newnick in ('0', u): # Allow /nick 0 to work newnick = u - elif not utils.isNick(newnick): + elif not irc.is_nick(newnick): irc.error('Invalid nickname %r.' % newnick) return