diff options
author | Wim <wim@42.be> | 2019-02-23 16:35:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-23 16:35:54 +0100 |
commit | 3190703dc8618896c932a23d8ca155fbbf6fab13 (patch) | |
tree | ab49eb5adbe6b59945dd2b21cb378ffb7538add9 /vendor/github.com/d5/tengo/stdlib/text_regexp.go | |
parent | 5095db8a43491fd2c5859f25cbb89a3be40bef6d (diff) | |
download | matterbridge-msglm-3190703dc8618896c932a23d8ca155fbbf6fab13.tar.gz matterbridge-msglm-3190703dc8618896c932a23d8ca155fbbf6fab13.tar.bz2 matterbridge-msglm-3190703dc8618896c932a23d8ca155fbbf6fab13.zip |
Support rewriting messages from relaybots using ExtractNicks. Fixes #466 (#730)
some examples:
this replaces a message like "Relaybot: <relayeduser> something interesting" to "relayeduser: something interesting"
ExtractNicks=[ [ "Relaybot", "<(.*?)>\\s+" ] ]
you can use multiple entries for multiplebots
this also replaces a message like "otherbot: (relayeduser) something else" to "relayeduser: something else"
ExtractNicks=[ [ "Relaybot", "<(.*?)>\\s+" ],[ "otherbot","\\((.*?)\\)\\s+" ]
OPTIONAL (default empty)
ExtractNicks=[ ["otherbot","<(.*?)>\\s+" ] ]
Diffstat (limited to 'vendor/github.com/d5/tengo/stdlib/text_regexp.go')
0 files changed, 0 insertions, 0 deletions