bugfix - do send colors to other irc bridges

"if we're not sending to an irc bridge we strip the IRC colors"
This commit is contained in:
c0ncord
2020-01-08 15:56:05 +00:00
committed by GitHub
parent 0ba6b56530
commit 9c85b06172

View File

@@ -12,7 +12,7 @@ text := import("text")
// start - strip irc colors
// if we're not sending to an irc bridge we strip the IRC colors
if inProtocol == "irc" {
if inProtocol == "irc" && outProtocol != "irc" {
re := text.re_compile(`\x03(?:\d{1,2}(?:,\d{1,2})?)?|[[:cntrl:]]`)
msgText=re.replace(msgText,"")
}