diff options
author | JeremyRand <jeremyrand@airmail.cc> | 2020-11-25 22:54:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-25 23:54:27 +0100 |
commit | c3bcbd63c012f57fa81832cf4b2812dcd15c8a8f (patch) | |
tree | 1f12271d13fda2a8aee90ae38e129e6c9265606f /matterbridge.toml.sample | |
parent | 29e29439ee0f10f4485b699633e05da6bcc9e3ce (diff) | |
download | matterbridge-msglm-c3bcbd63c012f57fa81832cf4b2812dcd15c8a8f.tar.gz matterbridge-msglm-c3bcbd63c012f57fa81832cf4b2812dcd15c8a8f.tar.bz2 matterbridge-msglm-c3bcbd63c012f57fa81832cf4b2812dcd15c8a8f.zip |
Add UserID to RemoteNickFormat and Tengo (#1308)
* Add UserID to RemoteNickFormat and Tengo
* Use strings.ReplaceAll in gateway.modifyUsername
Fixes a warning from gocritic linter.
* Use Unicode escape sequence instead of raw ZWSP in gateway.modifyUsername
Fixes a warning from stylecheck linter.
Diffstat (limited to 'matterbridge.toml.sample')
-rw-r--r-- | matterbridge.toml.sample | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/matterbridge.toml.sample b/matterbridge.toml.sample index fcaac2a4..dd8cfb48 100644 --- a/matterbridge.toml.sample +++ b/matterbridge.toml.sample @@ -1632,7 +1632,8 @@ RemoteNickFormat="{NICK}" ## Settings below can be reloaded by editing the file #RemoteNickFormat defines how remote users appear on this bridge -#The string "{NICK}" (case sensitive) will be replaced by the actual nick / username. +#The string "{NICK}" (case sensitive) will be replaced by the actual nick. +#The string "{USERID}" (case sensitive) will be replaced by the user ID. #The string "{BRIDGE}" (case sensitive) will be replaced by the sending bridge #The string "{LABEL}" (case sensitive) will be replaced by label= field of the sending bridge #The string "{PROTOCOL}" (case sensitive) will be replaced by the protocol used by the bridge @@ -1707,7 +1708,7 @@ LogFile="/var/log/matterbridge.log" #This script will receive every incoming message and can be used to modify the Username and the Text of that message. #The script will have the following global variables: #to modify: msgUsername and msgText -#to read: msgChannel and msgAccount +#to read: msgUserID, msgChannel, msgAccount # #The script is reloaded on every message, so you can modify the script on the fly. # @@ -1731,6 +1732,7 @@ InMessage="example.tengo" #read-only: #inAccount, inProtocol, inChannel, inGateway, inEvent #outAccount, outProtocol, outChannel, outGateway, outEvent +#msgUserID # #read-write: #msgText, msgUsername, msgDrop @@ -1748,7 +1750,7 @@ OutMessage="example.tengo" #RemoteNickFormat allows you to specify the location of a tengo (https://github.com/d5/tengo/) script. #The script will have the following global variables: #to modify: result -#to read: channel, bridge, gateway, protocol, nick +#to read: channel, bridge, gateway, protocol, nick, msgUserID # #The result will be set in {TENGO} in the RemoteNickFormat key of every bridge where {TENGO} is specified # |