Pass supybot.protocols.irc.strictRfc to ircutils.isNick in 'nick' converter. Closes GH-312.

This commit is contained in:
Valentin Lorentz 2012-02-11 09:03:52 +01:00
parent 3a59601d29
commit 570e30f1b7

View File

@ -421,7 +421,7 @@ getMatcher = _getRe(utils.str.perlReToPythonRe)
getReplacer = _getRe(utils.str.perlReToReplacer) getReplacer = _getRe(utils.str.perlReToReplacer)
def getNick(irc, msg, args, state): def getNick(irc, msg, args, state):
if ircutils.isNick(args[0]): if ircutils.isNick(args[0], conf.supybot.protocols.irc.strictRfc()):
if 'nicklen' in irc.state.supported: if 'nicklen' in irc.state.supported:
if len(args[0]) > irc.state.supported['nicklen']: if len(args[0]) > irc.state.supported['nicklen']:
state.errorInvalid('nick', args[0], state.errorInvalid('nick', args[0],