From 48ea58c1fbe905f3cfff3aa900fb934b48c2de86 Mon Sep 17 00:00:00 2001 From: James Lu Date: Tue, 7 Nov 2017 19:19:00 -0800 Subject: [PATCH] bots: remove use of deprecated utils.isNick() --- plugins/bots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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