sockchat:s2c:authz-success
You were redirected here from sockchat:s2c:packet-1.y.
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 | y | 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 Unicode Grapheme Clusters 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 Unicode Grapheme Clusters 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
- C2S Packet 1: Authorization Attempt - Client authorization attempt, this packet is a possible response to it.
- S2C Packet 1.n: Authorization Failure - Alternate universe version of this packet where the credentials were incorrect.
sockchat/s2c/authz-success.txt · Last modified: 2025/04/23 18:54 by flash