if irclib.is_channel(place):
message = "%s: %s" % (auteur, message.encode("utf-8"))
self.serv.privmsg(place, message)
- log(self.serveur, place, auteur, something + "%r" % params + "[successful]" if success else "[failed]")
+ log(self.serveur, place, auteur, something + "%r" % params + ("[successful]" if success else "[failed]"))
### Surcharge des events du Bot
def on_welcome(self, serv, ev):
success, solde, pseudo = nk.get_solde(self.nk, self.identities[auteur]["idbde"], serv, auteur)
if success:
serv.privmsg(auteur, "%s (%s)" % (float(solde)/100, pseudo.encode("utf8")))
- log(self.serveur, "priv", auteur, " ".join(message) + "[successful]" if success else "[failed]")
+ log(self.serveur, "priv", auteur, " ".join(message) + ("[successful]" if success else "[failed]"))
else:
serv.privmsg(canal, "Je ne connais pas ton pseudo note.")
elif cmd == u"ops":