|
|
@ -1169,13 +1169,16 @@ def actif(room,event): # Stats d'activité d'une personne |
|
|
|
if (len(args) > 0 and args[0] == "list"): |
|
|
|
salon = verifPMRoom(room,event) |
|
|
|
room_act = [] |
|
|
|
dupli_check = [] |
|
|
|
for cle,valeur in stats.items(): |
|
|
|
if (cle[0] == room.room_id): |
|
|
|
room_act.append(valeur) |
|
|
|
room_act.sort(key=lambda us: us.mess, reverse=True) |
|
|
|
reponse="Voici le tableau des plus gros posteurs!\n" |
|
|
|
for us in room_act: |
|
|
|
reponse = reponse + us.nick + " : " + str(us.mess) + "\n" |
|
|
|
if us.nick not in dupli_check: |
|
|
|
dupli_check.append(us.nick) |
|
|
|
reponse = reponse + us.nick + " : " + str(us.mess) + "\n" |
|
|
|
msg(salon,reponse) |
|
|
|
else: |
|
|
|
pers = "" |
|
|
|