Added documentation to outmessage-irccolors

This commit is contained in:
chotaire
2019-04-19 01:40:39 +02:00
parent 1e8b537d61
commit 6af2ee9330

View File

@@ -1,5 +1,16 @@
// See https://github.com/42wim/matterbridge/issues/798
/*
variables available
read-only:
inAccount, inProtocol, inChannel, inGateway
outAccount, outProtocol, outChannel, outGateway
read-write:
msgText, msgUsername
*/
text := import("text")
// See https://github.com/42wim/matterbridge/issues/798
// if we're not sending to an irc bridge we strip the IRC colors
if outProtocol != "irc" {
re := text.re_compile(`\x03(?:\d{1,2}(?:,\d{1,2})?)?|[[:cntrl:]]`)