This commit is contained in:
sidya82 2015-04-07 13:47:19 +02:00
parent 6c3284bb4f
commit 4eb9dc7d6a
1 changed files with 2 additions and 1 deletions

View File

@ -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())