From 2f5ae3eca84c913804f32e992f037b8f4db4569e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eli=C3=A1n=20Hanisch?= Date: Mon, 24 Oct 2011 14:34:17 -0300 Subject: [PATCH] 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. --- Encyclopedia/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Encyclopedia/plugin.py b/Encyclopedia/plugin.py index 0370a89..a1b3552 100644 --- a/Encyclopedia/plugin.py +++ b/Encyclopedia/plugin.py @@ -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" %