From c655d975a64c5bec9f5bc1712dd1aa8650f7691e Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 12 Jul 2015 14:00:33 -0700 Subject: [PATCH] pr/insp: remove isNick check in spawnClient --- protocols/inspircd.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/protocols/inspircd.py b/protocols/inspircd.py index e71dd76..e52257d 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -39,8 +39,6 @@ def spawnClient(irc, nick, ident='null', host='null', realhost=None, modes=set() realname = realname or irc.botdata['realname'] realhost = realhost or host raw_modes = utils.joinModes(modes) - if not utils.isNick(nick): - raise ValueError('Invalid nickname %r.' % nick) _sendFromServer(irc, server, "UID {uid} {ts} {nick} {realhost} {host} {ident} {ip}" " {ts} {modes} + :{realname}".format(ts=ts, host=host, nick=nick, ident=ident, uid=uid,