Added documentation to outmessage-irccolors
This commit is contained in:
@@ -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 we're not sending to an irc bridge we strip the IRC colors
|
||||||
if outProtocol != "irc" {
|
if outProtocol != "irc" {
|
||||||
re := text.re_compile(`\x03(?:\d{1,2}(?:,\d{1,2})?)?|[[:cntrl:]]`)
|
re := text.re_compile(`\x03(?:\d{1,2}(?:,\d{1,2})?)?|[[:cntrl:]]`)
|
||||||
|
|||||||
Reference in New Issue
Block a user