diff options
author | Joe Rayhawk <jrayhawk+git@omgwallhack.org> | 2024-08-20 12:21:55 -0700 |
---|---|---|
committer | Joe Rayhawk <jrayhawk+git@omgwallhack.org> | 2024-08-20 12:21:55 -0700 |
commit | 85c4b4082f7e297c5f20a95acc486c9bcb8f6e1b (patch) | |
tree | b30181e149edbb1c0406988cde4e420307d6e540 | |
parent | 1b5e58b95d52a89310ea96d6a496d57eac83594e (diff) | |
download | twitchtools-85c4b4082f7e297c5f20a95acc486c9bcb8f6e1b.tar.gz twitchtools-85c4b4082f7e297c5f20a95acc486c9bcb8f6e1b.zip |
bungmobott: t2s sterilize IRC color codes
-rw-r--r-- | crystal/bungmobott.cr | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crystal/bungmobott.cr b/crystal/bungmobott.cr index 29bc46f..5c21a74 100644 --- a/crystal/bungmobott.cr +++ b/crystal/bungmobott.cr @@ -684,6 +684,8 @@ def t2s( t2sifc : Channel, config : BungmoBott::Config, userdir : Path, chatuser subs = Array( Tuple( Regex, String ) ){ { /http(s|):\/\/([a-z0-9.-]+)\/[a-zA-Z0-9\/&=%-_]+/, "link to \\2" }, { /([^a-zA-Z0-9])-/, "\\1 dash "}, + { /\x{0003}[0-9]*,[0-9]*/, "" }, # IRC terminal color codes + { /\x{0003}[0-9]+/, "" }, { /\|/, " vertical bar "}, { /\`/, " grave accent "}, { /\+/, " plus "}, |