BG 63
This commit is contained in:
parent
6c3284bb4f
commit
4eb9dc7d6a
@ -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())
|
||||
|
Reference in New Issue
Block a user