This commit is contained in:
Giuseppe Guerra 2018-08-04 23:10:38 +02:00
parent 56c1dcc48a
commit c09c7b5d96
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ class handler(requestsManager.asyncRequestHandler):
# Process/ignore packet
if packetID != 4:
if packetID in eventHandler:
if userToken.restricted == False or (userToken.restricted and packetID in packetsRestricted):
if not userToken.restricted or (userToken.restricted and packetID in packetsRestricted):
eventHandler[packetID]()
else:
log.warning("Ignored packet id from {} ({}) (user is restricted)".format(requestTokenString, packetID))