mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Add chat settings RPC command: untested
This commit is contained in:
parent
b8ef66621f
commit
655d77a401
1 changed files with 19 additions and 0 deletions
|
@ -773,3 +773,22 @@ class ToontownRPCHandler(ToontownRPCHandlerBase):
|
||||||
oldFields = {'setWishNameState': 'PENDING'}
|
oldFields = {'setWishNameState': 'PENDING'}
|
||||||
return self.rpc_updateObject(
|
return self.rpc_updateObject(
|
||||||
avId, 'DistributedToonUD', newFields, oldFields=oldFields)
|
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})
|
||||||
|
|
Loading…
Reference in a new issue