if not capab(msg.prefix, 'editfactoids'): #irc.reply("Your edit request has been forwarded to %s. Thank you for your attention to detail" % # self.registryValue('relaychannel'),private=True) irc.reply("You don't have permission to edit the factoids",private=True) #irc.queueMsg(ircmsgs.privmsg(self.registryValue('relaychannel'), "In %s, %s said: %s" % # (msg.args[0], msg.nick, msg.args[1]))) return ret = self.factoid_edit(text, channel, msg.prefix) elif ' is ' in text and '|' not in text and '>' not in text.replace('<reply>','').replace('<alias>',''): if not capab(msg.prefix, 'editfactoids'): if len(text[:text.find('is')]) > 15: irc.error("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'),private=True) irc.reply("You don't have permission to edit the factoids",private=True) #irc.queueMsg(ircmsgs.privmsg(self.registryValue('relaychannel'), "In %s, %s said: %s" % # (msg.args[0], msg.nick, msg.args[1]))) return ret = self.factoid_add(text, channel, msg.prefix)