forked from Hay1tsme/artemis
chuni: Ignore guest plays in upserts
This commit is contained in:
@ -809,6 +809,10 @@ class ChuniBase:
|
||||
upsert = data["upsertUserAll"]
|
||||
user_id = data["userId"]
|
||||
|
||||
if int(user_id) & 281479271677952 == 281479271677952:
|
||||
self.logger.info("Guest play, ignoring.")
|
||||
return {"returnCode": "1"}
|
||||
|
||||
if "userData" in upsert:
|
||||
try:
|
||||
upsert["userData"][0]["userName"] = self.read_wtf8(
|
||||
|
Reference in New Issue
Block a user