summaryrefslogtreecommitdiffstats
path: root/gateway
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-02-20 18:57:46 +0100
committerWim <wim@42.be>2018-02-20 18:57:46 +0100
commite622587db43d36d22640d9f90a92d984d6231dd3 (patch)
tree210d51304a58f553498470495da7993125995302 /gateway
parentf2efc06d1ffaef74407bcb1bdff33bcaf6c52dfe (diff)
downloadmatterbridge-msglm-e622587db43d36d22640d9f90a92d984d6231dd3.tar.gz
matterbridge-msglm-e622587db43d36d22640d9f90a92d984d6231dd3.tar.bz2
matterbridge-msglm-e622587db43d36d22640d9f90a92d984d6231dd3.zip
Add label support in RemoteNickFormat
Diffstat (limited to 'gateway')
-rw-r--r--gateway/gateway.go1
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
}