Viewing file on branch master
| / | contrib | outmessage-irccolors.tengo |
| 1 | // See https://github.com/42wim/matterbridge/issues/798 |
| 2 | |
| 3 | // if we're not sending to an irc bridge we strip the IRC colors |
| 4 | if outProtocol != "irc" { |
| 5 | re := text.re_compile(`\x03(?:\d{1,2}(?:,\d{1,2})?)?|[[:cntrl:]]`) |
| 6 | msgText=re.replace(msgText,"") |
| 7 | } |
| 8 |