diff options
author | Patrick Connolly <patrick.c.connolly@gmail.com> | 2018-10-24 03:53:11 +0800 |
---|---|---|
committer | Wim <wim@42.be> | 2018-10-23 21:53:11 +0200 |
commit | 291594b99ceb56b5da354bd093b6a04f43e24d4e (patch) | |
tree | e15c14019eb3021f77e9e3ad4cc58a56b2349881 /gateway | |
parent | f2cdda7278e01b548f8aff6567376ae2f15c1803 (diff) | |
download | matterbridge-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.go | 1 |
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 } |