BG 63
This commit is contained in:
parent
4eb9dc7d6a
commit
42d5fedd7b
@ -168,7 +168,7 @@ def privateMsg(connection, pseudo, msg):
|
|||||||
else:
|
else:
|
||||||
pm = (connection, c)
|
pm = (connection, c)
|
||||||
pmr = (c,connection)
|
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())
|
connection.sendall("ERR_NOT_ACCEPTED".encode())
|
||||||
else:
|
else:
|
||||||
c.sendall("NEW_PM {} {}".format(pseudo, msg).encode())
|
c.sendall("NEW_PM {} {}".format(pseudo, msg).encode())
|
||||||
|
Reference in New Issue
Block a user