if len(message)>1:
if message[1] in self.play_channels:
serv.privmsg(auteur,"Je play déjà sur %s."%(message[1]))
- log("priv",auteur," ".join(message)+"[failed]")
+ log(self.serveur,"priv",auteur," ".join(message)+"[failed]")
else:
self.play_channels.append(message[1])
self.play_status[message[1]]=[None]
serv.privmsg(auteur,"Play channels : "+" ".join(self.play_channels))
- log("priv",auteur," ".join(message)+"[successful]")
+ log(self.serveur,"priv",auteur," ".join(message)+"[successful]")
else:
serv.privmsg(auteur,"Play channels : "+" ".join(self.play_channels))
else:
if message[1] in self.play_channels:
self.play_channels.remove(message[1])
serv.privmsg(auteur,"Play channels : "+" ".join(self.play_channels))
- log("priv",auteur," ".join(message)+"[successful]")
+ log(self.serveur,"priv",auteur," ".join(message)+"[successful]")
else:
serv.privmsg(auteur,"Je ne play pas sur %s."%(message[1]))
- log("priv",auteur," ".join(message)+"[failed]")
+ log(self.serveur,"priv",auteur," ".join(message)+"[failed]")
else:
notunderstood=True
elif cmd=="stay":
elif cmd in ["states","status"]:
if auteur in self.overops:
for k in self.play_status.keys():
- serv.privmsg(auteur,"%s : %s"%(k,"; ".join([str(i) for i in self.play_status[k]])))
+ serv.privmsg(auteur,"%s : %s"%(k,"".join([str(i[0]) for i in self.play_status[k]])))
elif cmd=="die":
if auteur in self.overops:
log(self.serveur,"priv",auteur," ".join(message)+"[successful]")