u"ouvert(|e|s|es)":u"ouverte",
u"open":u"open",
u"plein(|s|es)":u"pleine",
- u"bien plein(|e|s|es)":u"bien pleine"}
+ u"bien plein(|e|s|es)":u"bien pleine",
+ u"innocent(|e|s|es)":u"innocente"}
adj_reg=u"(?P<adjectif>"+u"|".join(adjectifs.keys())+u")"
- reg=u".*(^| )"+debuts+u" "+adj_reg+u"($|,|;|\.| ).*"
+ reg=u".*(^| |')"+debuts+u" "+adj_reg+u"($|,|;|\.| ).*"
matched=re.match(reg,message)
if matched:
# il faut repasser l'adjectif au féminin singulier
IDENTIFY Me permet de savoir qui tu es sur la note kfet.
DROP Me fait oublier ton identité."""
helpmsg_ops="""
- JOIN Faire rejoindre un channel
- LEAVE Faire quitter un channel
- QUIET Se taire sur un chanel
+ JOIN Faire rejoindre un chan
+ LEAVE Faire quitter un chan
+ QUIET Se taire sur un chan
NOQUIET Opposé de QUIET
LOST Perdre sur un chan"""
helpmsg_overops="""
elif cmd in ["reconnect"]:
if auteur in self.ops:
try:
- self.nk=self.new_connection_NK(serv,config_note_pseudo,config_note_password)[1]
+ self.nk=self.new_connection_NK(serv,config_note_pseudo,
+ config_note_password,"special")[1]
except Exception as exc:
self.nk=None
log(self.serveur,"""Erreur dans on_pubmsg/"cmd in ["reconnect"]\n"""+str(exc))
else:
serv.privmsg(canal,"%s: Je ne connais pas ton pseudo note."%(auteur))
log(self.serveur,canal,auteur,message+"[unknown]")
- elif message in ["pain au chocolat","chocolatine"] and not canal in self.quiet_channels:
+ elif (re.match("!?(pain au chocolat|chocolatine)",message.lower())
+ and not canal in self.quiet_channels):
serv.action(canal,"sert un pain au chocolat à %s"%(auteur))
- elif re.match("manzana",message.lower()) and not canal in self.quiet_channels:
+ elif re.match("!?manzana",message.lower()) and not canal in self.quiet_channels:
if auteur=="[20-100]":
serv.action(canal,"sert une bouteille de manzana à %s"%(auteur))
else: