fix: format IRC ACTION messages as * nick action * and strip CTCP delimiters

CTCP ACTION messages (/me) were relayed with raw \x01 bytes, rendering
as boxed-X characters in OwnCast. Detect the ACTION pattern, extract the
body, and format it like traditional IRC clients. Also strip \x01 in
irc_format as a safety net for other CTCP leakage.

Made-with: Cursor
This commit is contained in:
cottongin
2026-03-12 16:37:46 -04:00
parent b0236ee52b
commit e2fbd52009
7 changed files with 112 additions and 9 deletions

View File

@@ -148,6 +148,7 @@ fn parse_ws_message(text: &str) -> Option<BridgeEvent> {
username: display_name,
body: strip_html(body),
id,
is_action: false,
})
}
_ => None,