Railgun

if it ain't broke, we'll break it

User Tools

Site Tools


sockchat:s2c:authz-success

This is an old revision of the document!


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 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

1)
Went ignored by the original client implementation.
2)
SharpChat also an internal maximum byte count which is the same value multiplied by 10.
sockchat/s2c/authz-success.1745112634.txt.gz · Last modified: 2025/04/20 01:30 by flash