sockchat:s2c:authz-success
This is an old revision of the document!
Table of Contents
S2C Packet 1.y: Authorization Success
Informs the client that it authorized successfully and what user it is authenticated as.
This packet or S2C Packet 1.n: Authorization Failure can only occur once per connection.
Format
Index | Type | Description |
---|---|---|
0 | 1 | Authz/User Add packet ID |
1 | n | Authz success packet ID |
2 | string | User ID of the authenticated user |
3 | user name | User name of the authenticated user |
4 | colour | Display colour of the authenticated user |
5 | user perms | Permissions for the authenticated user |
6 | channel name | Default channel name, the user will automatically join following this packet |
7 | int | Maximum length/unicode grapheme cluster count for messages sent by the client 1) 2) |
Examples
User with ID 47, named Flashwave with no display colour, joining with rank 7, ability to kick, set a nickname and create temporary channels. Default channel is called Lounge and the maximum number of characters is 5000:
1\ty\t47\tFlashwave\tinherit\t7\f1\f0\f1\f1\tLounge\t5000
User with ID 4000, named murasaki with display colour #660099, joining with rank 123 and no additional permissions. Default channel is called Lobby and the maximum number of characters is 9001. User permissions have the faulty Flashii specific format:
1\ty\t4000\tmurasaki\t#660099\t123 0 0 0 0\tLobby\t9001
See Also
- Authorization Attempt - Client authorization attempt, this packet is a possible response to it.
- Authorization Failure - Alternate universe version of this packet where the credentials were incorrect.
sockchat/s2c/authz-success.1744664830.txt.gz · Last modified: 2025/04/14 21:07 by flash