From 570e30f1b7cbba865188ef326872693125fda747 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 11 Feb 2012 09:03:52 +0100 Subject: [PATCH] Pass supybot.protocols.irc.strictRfc to ircutils.isNick in 'nick' converter. Closes GH-312. --- src/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.py b/src/commands.py index 82b5b2280..2aa838c1b 100644 --- a/src/commands.py +++ b/src/commands.py @@ -421,7 +421,7 @@ getMatcher = _getRe(utils.str.perlReToPythonRe) getReplacer = _getRe(utils.str.perlReToReplacer) 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 len(args[0]) > irc.state.supported['nicklen']: state.errorInvalid('nick', args[0],