summaryrefslogtreecommitdiffstats
path: root/gateway
diff options
context:
space:
mode:
authorPatrick Connolly <patrick.c.connolly@gmail.com>2018-10-24 03:53:11 +0800
committerWim <wim@42.be>2018-10-23 21:53:11 +0200
commit291594b99ceb56b5da354bd093b6a04f43e24d4e (patch)
treee15c14019eb3021f77e9e3ad4cc58a56b2349881 /gateway
parentf2cdda7278e01b548f8aff6567376ae2f15c1803 (diff)
downloadmatterbridge-msglm-291594b99ceb56b5da354bd093b6a04f43e24d4e.tar.gz
matterbridge-msglm-291594b99ceb56b5da354bd093b6a04f43e24d4e.tar.bz2
matterbridge-msglm-291594b99ceb56b5da354bd093b6a04f43e24d4e.zip
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 <patrick.c.connolly@gmail.com>
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 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
}