suggesting a factoid forced a limit of 14 chars in factoid's name.

This caused problems with channel specific factoids, now the limit is 35.
This commit is contained in:
Elián Hanisch 2011-10-24 14:34:17 -03:00
parent 0438d153da
commit 2f5ae3eca8

View File

@ -513,7 +513,7 @@ class Encyclopedia(callbacks.Plugin):
if not (capab(msg.prefix, 'editfactoids') \
or channel in self.registryValue('editchannel') \
and capab(msg.prefix, 'restricted-editor')):
if len(text[:text.find('is')]) > 15:
if len(text[:text.find('is')]) >= 35:
irc.reply("I am only a bot, please don't think I'm intelligent :)", prefixNick=True)
else:
irc.reply("Your edit request has been forwarded to %s. Thank you for your attention to detail" %