From 4eb9dc7d6a93ba53ca24590470d6f09dd5c39639 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Tue, 7 Apr 2015 13:47:19 +0200 Subject: [PATCH] BG 63 --- serveur/Server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/serveur/Server.py b/serveur/Server.py index fb91948..281324a 100644 --- a/serveur/Server.py +++ b/serveur/Server.py @@ -167,7 +167,8 @@ def privateMsg(connection, pseudo, msg): connection.sendall("ERR_DEST_NOT_FOUND".encode()) else: pm = (connection, c) - if sorted(pm) not in sorted(validatePM): + pmr = (c,connection) + if pm not in validatePM or pmr not in validatePM: connection.sendall("ERR_NOT_ACCEPTED".encode()) else: c.sendall("NEW_PM {} {}".format(pseudo, msg).encode())