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:
parent
0438d153da
commit
2f5ae3eca8
|
@ -513,7 +513,7 @@ class Encyclopedia(callbacks.Plugin):
|
||||||
if not (capab(msg.prefix, 'editfactoids') \
|
if not (capab(msg.prefix, 'editfactoids') \
|
||||||
or channel in self.registryValue('editchannel') \
|
or channel in self.registryValue('editchannel') \
|
||||||
and capab(msg.prefix, 'restricted-editor')):
|
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)
|
irc.reply("I am only a bot, please don't think I'm intelligent :)", prefixNick=True)
|
||||||
else:
|
else:
|
||||||
irc.reply("Your edit request has been forwarded to %s. Thank you for your attention to detail" %
|
irc.reply("Your edit request has been forwarded to %s. Thank you for your attention to detail" %
|
||||||
|
|
Loading…
Reference in New Issue