From 291594b99ceb56b5da354bd093b6a04f43e24d4e Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Wed, 24 Oct 2018 03:53:11 +0800 Subject: Allow origin CHANNEL to be used in RemoteNickFormat (#515) * Added origin CHANNEL to RemoteNickFormat. Updated config docs. [Fixes #515] * Update matterbridge.toml.sample Co-Authored-By: patcon --- gateway/gateway.go | 1 + 1 file changed, 1 insertion(+) (limited to 'gateway') diff --git a/gateway/gateway.go b/gateway/gateway.go index a33a9a97..5bfb00e2 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -377,6 +377,7 @@ func (gw *Gateway) modifyUsername(msg config.Message, dest *bridge.Bridge) strin nick = strings.Replace(nick, "{GATEWAY}", gw.Name, -1) nick = strings.Replace(nick, "{LABEL}", br.GetString("Label"), -1) nick = strings.Replace(nick, "{NICK}", msg.Username, -1) + nick = strings.Replace(nick, "{CHANNEL}", msg.Channel, -1) return nick } -- cgit v1.2.3