From 7641e77fc6d61d2854c908a31ac4bad51a76661a Mon Sep 17 00:00:00 2001 From: sidya82 Date: Mon, 13 Apr 2015 18:30:36 +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 db95fe2..51d36c8 100644 --- a/serveur/Server.py +++ b/serveur/Server.py @@ -8,7 +8,7 @@ from serveur import Log ### Code retour ### -### +### INFO USERLIST_ENABLE = 300 USERLIST_DISABLE = 301 HAS_JOIN = 302 @@ -291,7 +291,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_MSG, pseudo, msg).encode()) + c.sendall("{} {} {}".format(NEW_PM, pseudo, msg).encode()) connection.sendall("{}".format(SUCC_PM_SENDED).encode())