From 049dc46f63e148e5390f17b4c2b54b9c780f0f7b Mon Sep 17 00:00:00 2001 From: sidya82 Date: Wed, 15 Apr 2015 08:46:33 +0200 Subject: [PATCH] correctif code pm --- serveur/Server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serveur/Server.py b/serveur/Server.py index a9e3018..d4eacdc 100644 --- a/serveur/Server.py +++ b/serveur/Server.py @@ -7,7 +7,7 @@ import re from serveur import Log -### Code retour #### +### Code retour ### ### INFO USERLIST_ENABLE = 300 USERLIST_DISABLE = 301 @@ -289,7 +289,7 @@ def private_message(connection, pseudo, msg): if pm not in validatePM and pmr not in validatePM: connection.sendall("{}".format(ERR_CONV_NOT_ALLOWED).encode()) else: - c.sendall("{} {} {}".format(NEW_PM, pseudo, msg).encode()) + c.sendall("{} {} {}".format(NEW_PM,usersConnected[connection][1], msg).encode()) connection.sendall("{}".format(SUCC_PM_SENDED).encode())