This commit is contained in:
sidya82 2015-04-07 13:48:21 +02:00
parent 4eb9dc7d6a
commit 42d5fedd7b
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ def privateMsg(connection, pseudo, msg):
else:
pm = (connection, c)
pmr = (c,connection)
if pm not in validatePM or pmr not in validatePM:
if pm not in validatePM and pmr not in validatePM:
connection.sendall("ERR_NOT_ACCEPTED".encode())
else:
c.sendall("NEW_PM {} {}".format(pseudo, msg).encode())