mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-18 08:02:49 +01:00
Pass supybot.protocols.irc.strictRfc to ircutils.isNick in 'nick' converter. Closes GH-312.
This commit is contained in:
parent
3a59601d29
commit
570e30f1b7
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user