correctif code pm
This commit is contained in:
parent
9fdf2de340
commit
7641e77fc6
@ -8,7 +8,7 @@ from serveur import Log
|
|||||||
|
|
||||||
|
|
||||||
### Code retour ###
|
### Code retour ###
|
||||||
###
|
### INFO
|
||||||
USERLIST_ENABLE = 300
|
USERLIST_ENABLE = 300
|
||||||
USERLIST_DISABLE = 301
|
USERLIST_DISABLE = 301
|
||||||
HAS_JOIN = 302
|
HAS_JOIN = 302
|
||||||
@ -291,7 +291,7 @@ def private_message(connection, pseudo, msg):
|
|||||||
if pm not in validatePM and pmr not in validatePM:
|
if pm not in validatePM and pmr not in validatePM:
|
||||||
connection.sendall("{}".format(ERR_CONV_NOT_ALLOWED).encode())
|
connection.sendall("{}".format(ERR_CONV_NOT_ALLOWED).encode())
|
||||||
else:
|
else:
|
||||||
c.sendall("{} {} {}".format(NEW_MSG, pseudo, msg).encode())
|
c.sendall("{} {} {}".format(NEW_PM, pseudo, msg).encode())
|
||||||
connection.sendall("{}".format(SUCC_PM_SENDED).encode())
|
connection.sendall("{}".format(SUCC_PM_SENDED).encode())
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user