???
This commit is contained in:
parent
56c1dcc48a
commit
c09c7b5d96
@ -179,7 +179,7 @@ class handler(requestsManager.asyncRequestHandler):
|
|||||||
# Process/ignore packet
|
# Process/ignore packet
|
||||||
if packetID != 4:
|
if packetID != 4:
|
||||||
if packetID in eventHandler:
|
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]()
|
eventHandler[packetID]()
|
||||||
else:
|
else:
|
||||||
log.warning("Ignored packet id from {} ({}) (user is restricted)".format(requestTokenString, packetID))
|
log.warning("Ignored packet id from {} ({}) (user is restricted)".format(requestTokenString, packetID))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user