From f01269287e7b4f417cf724248914679702507dc4 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 8 Jul 2015 23:00:50 -0700 Subject: [PATCH] pr/insp: remove checks for valid nick/channel; they're done in plugins now --- protocols/inspircd.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/protocols/inspircd.py b/protocols/inspircd.py index 4785a42..4e64898 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -57,8 +57,6 @@ def joinClient(irc, client, channel): server = utils.isInternalClient(irc, client) if not server: raise LookupError('No such PyLink PseudoClient exists.') - if not utils.isChannel(channel): - raise ValueError('Invalid channel name %r.' % channel) # One channel per line here! _sendFromServer(irc, server, "FJOIN {channel} {ts} {modes} :,{uid}".format( ts=irc.channels[channel].ts, uid=client, channel=channel, @@ -70,8 +68,6 @@ def partClient(irc, client, channel, reason=None): if not utils.isInternalClient(irc, client): raise LookupError('No such PyLink PseudoClient exists.') msg = "PART %s" % channel - if not utils.isChannel(channel): - raise ValueError('Invalid channel name %r.' % channel) if reason: msg += " :%s" % reason _sendFromUser(irc, client, msg) @@ -123,10 +119,6 @@ def nickClient(irc, numeric, newnick): Changes the nick of a PyLink PseudoClient.""" if not utils.isInternalClient(irc, numeric): raise LookupError('No such PyLink PseudoClient exists.') - if newnick == '0': - newnick = numeric - elif not utils.isNick(newnick): - raise ValueError('Invalid nickname %r.' % newnick) _sendFromUser(irc, numeric, 'NICK %s %s' % (newnick, int(time.time()))) irc.users[numeric].nick = newnick