From 655d77a40131c7f4f11353db8951a291215fed11 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 14 Aug 2015 00:38:00 +0300 Subject: [PATCH] Add chat settings RPC command: untested --- toontown/rpc/ToontownRPCHandler.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/toontown/rpc/ToontownRPCHandler.py b/toontown/rpc/ToontownRPCHandler.py index c40c4850..d701d4a4 100755 --- a/toontown/rpc/ToontownRPCHandler.py +++ b/toontown/rpc/ToontownRPCHandler.py @@ -773,3 +773,22 @@ class ToontownRPCHandler(ToontownRPCHandlerBase): oldFields = {'setWishNameState': 'PENDING'} return self.rpc_updateObject( avId, 'DistributedToonUD', newFields, oldFields=oldFields) + + @rpcmethod(accessLevel=MODERATOR) + def rpc_setChatSettings(self, accId, chatSettings): + """ + Summary: + Sets the chat settings of the account associated with the provided + [accId]. + + Parameters: + [int accId] = The ID of the account whose chat settings + are to be changed. + [uint8[sp+, tf]] = The chat settings - SpeedChat Plus and + True Friends + + Example response: + On success: True + On failure: False + """ + return self.rpc_updateObject(accId, 'AccountUD', {'CHAT_SETTINGS': chatSettings})