report_bugs_to=["[20-100]"]
# config UTF8-fail
-utf8_fail = [u"Ton encodage me déprime…"]
+utf8_fail_answers = [u"Ton encodage me déprime…"]
utf8_trigger = True
# config "tu m'traites ?"
insultes=[u"conna(rd|sse)",u"pute",u"con(|ne)",u"enf(oiré|lure)",
test=bot_unicode(message)
except UnicodeBotError:
if config.utf8_trigger:
- serv.privmsg(auteur, config.utf8_fail)
+ 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))
+ 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
pour_moi,message=self.pourmoi(serv,message)
for (detect, reason) in config.kicking_list:
try:
test=bot_unicode(action)
except UnicodeBotError:
- if not channel in self.quiet_channels and config.utf8_trigger:
- serv.privmsg(channel, "%s: %s"%(auteur,config.utf8_fail))
+ 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
mypseudo=self.nick