test=bot_unicode(message)
except UnicodeBotError:
if config.utf8_trigger:
- serv.privmsg(auteur, config.utf8_fail_answers)
+ serv.privmsg(auteur, random.choice(config.utf8_fail_answers).encode("utf8"))
return
message=message.split()
cmd=message[0].lower()
try:
test=bot_unicode(message)
except UnicodeBotError:
- if not canal in self.quiet_channels and config.utf8_trigger:
- serv.privmsg(canal, "%s: %s"%(auteur,config.utf8_fail_answers))
+ if config.utf8_trigger and not canal in self.quiet_channels:
+ serv.privmsg(canal, (u"%s: %s"%(auteur,random.choice(config.utf8_fail_answers))).encode("utf8"))
return
tryother=False
pour_moi,message=self.pourmoi(serv,message)