sockchat:s2c:message-add
Table of Contents
S2C Packet 2: Message Add
Informs the client that a message has been added. May also contain a formatted notice.
Format
Index | Type | Description |
---|---|---|
0 | 2 | Message Add packet ID |
1 | timestamp | Timestamp at which this message was received by the server |
2 | string | User ID of the author. -1 indicates that the message was sent by the server itself and is a formatted notice. |
3 | string | Message body. If this isn't an informational message, it is sanitised by the server: < , > and \n are replaced by < , > and \s<br/>\s (where \s is a space/0x20 ). |
4 | string | Message ID |
5 | message flags | Message flags |
Notice formatting
The formatting of index 3 if index 2 is set to -1
is described here.
It is concatenated by the form feed character \f
, respresented in ASCII by 0x0C
.
All notice formats are describe in the notices section.
Examples
A non-sensical message sent by user 186, presented with a bold user name and colon separator with ID 39991463245213 sent at Monday, 14 April 2025 01:30:53 GMT:
2\t1744594253\t186\tit is just smells teamspeak my lift skid i just black_jacked up to go townhill be a cd lmao\t39991463245213\t10010
An informational notice containing a broadcast message.
2\t1744594374\t-1\t0\fsay\fmeow\t39991494240500\t10010
An error notice containing a user not found error for user name no-one.
2\t1744594454\t-1\t1\fusernf\fno-one\t39991514755369\t10010
See Also
- S2C Packet 6: Message Remove - A message has been removed.
- S2C Packet 7.1: Context Message Add - Informs the client about an existing message.
- Notices - Notice formats that may appear.
sockchat/s2c/message-add.txt · Last modified: 2025/04/20 01:33 by flash