When a user tries to speak with the bot, reply to him, so the message doesn't get lost.

This commit is contained in:
Andrea Corbellini
2011-05-08 18:27:51 +02:00
parent 101aef49b3
commit ad21468aec

View File

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