diff options
author | Wim <wim@42.be> | 2018-02-20 18:57:46 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-02-20 18:57:46 +0100 |
commit | e622587db43d36d22640d9f90a92d984d6231dd3 (patch) | |
tree | 210d51304a58f553498470495da7993125995302 /gateway/gateway.go | |
parent | f2efc06d1ffaef74407bcb1bdff33bcaf6c52dfe (diff) | |
download | matterbridge-msglm-e622587db43d36d22640d9f90a92d984d6231dd3.tar.gz matterbridge-msglm-e622587db43d36d22640d9f90a92d984d6231dd3.tar.bz2 matterbridge-msglm-e622587db43d36d22640d9f90a92d984d6231dd3.zip |
Add label support in RemoteNickFormat
Diffstat (limited to 'gateway/gateway.go')
-rw-r--r-- | gateway/gateway.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go index 6fe7f0ea..c70fbb00 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -323,6 +323,7 @@ func (gw *Gateway) modifyUsername(msg config.Message, dest *bridge.Bridge) strin } nick = strings.Replace(nick, "{BRIDGE}", br.Name, -1) nick = strings.Replace(nick, "{PROTOCOL}", br.Protocol, -1) + nick = strings.Replace(nick, "{LABEL}", br.Config.Label, -1) nick = strings.Replace(nick, "{NICK}", msg.Username, -1) return nick } |