extensions

This commit is contained in:
MeexReay 2025-06-22 20:45:26 +03:00
parent 284ce523d6
commit 6945b6a25f
2 changed files with 35 additions and 1 deletions

34
EXTENSIONS.md Normal file
View File

@ -0,0 +1,34 @@
# Extensions
Over time, as various clients and servers for RAC were developed, users introduced their own protocol extensions. These additions were created independently of Mr. Sugoma and are designed to enhance the protocol's capabilities while maintaining compatibility with existing RAC versions.
## Server info packet
Client sends:
- Byte `0x69`
Server sends:
- (nothing or closes socket if server doesn't support this feature)
- Protocol version:
- Byte `0x01` for RACv1
- Byte `0x02` for RACv1.99
- Byte `0x03` for RACv2
- Server name
## User agents
User agents in RAC is the way how to get know from what client the message was sent. It works by just checking the message text throught regex.
Here are listed the most common clients, and their common names colors in the chat.
| Client | Format | Regex | Color |
| :----: | :----: | :----: | :----: |
| [bRAC](https://github.com/MeexReay/bRAC) | 리㹰<{name}> {text} | `\uB9AC\u3E70<(.*?)> (.*)` | green
| [CRAB](https://gitea.bedohswe.eu.org/pixtaded/crab) | ═══<{name}> {text} | `\u2550\u2550\u2550<(.*?)> (.*)` | light red
| [Mefidroniy](https://github.com/OctoBanon-Main/mefedroniy-client) | °ʘ<{name}> {text} | `\u00B0\u0298<(.*?)> (.*)` | light magenta
| [cRACk](https://github.com/pansangg/cRACk) | ⁂<{name}> {text} | `\u2042<(.*?)> (.*)` | gold
| [Snowdrop](https://github.com/Forbirdden/Snowdrop) | ඞ<{name}> {text} | `\u0D9E<(.*?)> (.*)` | light green
| clRAC | <{name}> {text} | `<(.*?)> (.*)` | cyan

View File

@ -56,7 +56,7 @@ The following documents cover the structure, behavior, and expectations of RAC a
- [RACv1.99.x](RACv1.99.md) - [RACv1.99.x](RACv1.99.md)
- [RACv2.0](RACv2.md) - [RACv2.0](RACv2.md)
- [WRACv2.0](WRAC.md) - [WRACv2.0](WRAC.md)
- [Users additions](USERS_ADDITIONS.md) - [Extensions](USERS_ADDITIONS.md)
[^4]: "_Про RAC 1 вообще забудь, это днище, его юзать нельзя._" - Mr. Sugoma [^4]: "_Про RAC 1 вообще забудь, это днище, его юзать нельзя._" - Mr. Sugoma