Railgun

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

User Tools

Site Tools


sockchat:s2c:user-remove

This is an old revision of the document!


S2C Packet 3: User Remove

Informs the client that a user has left the server.

Format

Index Type Description
0 3 User Remove packet ID
1 string User ID of the removed user
2 user name User name of the removed user
3 string Reason string as to why the user was removed, listed below
4 timestamp Timestamp at which the user was removed
5 string Message ID associated with this event

Reason strings

String Description
leave User gracefully left, e.g. “xyz logged out”.
kick User got banned, kicked or otherwise unvoluntarily had their session terminated, e.g. “xyz has been kicked”.
flood User got kicked for exceeding the flood protection limit, e.g. “xyz has been kicked for spam”.
timeout User lost connection unexpectedly after not sending pings in a timely fashion, e.g. “xyz timed out”. 1)

Examples

A user with ID 181 named saikuru0 leaving at Sunday, 13 April 2025 22:18:53 GMT with message ID 39988514246140:

3\t181\tsaikuru0\tleave\t1744582733\t39988514246140

A user with ID 11 named Satori being kicked at Sunday, 13 April 2025 22:24:37 GMT with message ID 39988602271681:

3\t11\tSatori\tkick\t1744583077\t39988602271681

See Also

1)
The original PHP Sock Chat implementation did not support this and was added later by SharpChat. Support could be added by modifying the language file, so we’re letting this slide.
sockchat/s2c/user-remove.1744583145.txt.gz · Last modified: 2025/04/13 22:25 by flash