diff options
author | Wim <wim@42.be> | 2018-01-14 16:55:32 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-01-14 16:55:32 +0100 |
commit | 7631d43c4807ab0ad0fff03b9d45115e384351bb (patch) | |
tree | fc1259aac98fc8706faca75ccc22d83b9757c02f | |
parent | d0b2ee5c8549fcf9a48478d577a3e77f5f0e4ea1 (diff) | |
download | matterbridge-msglm-7631d43c4807ab0ad0fff03b9d45115e384351bb.tar.gz matterbridge-msglm-7631d43c4807ab0ad0fff03b9d45115e384351bb.tar.bz2 matterbridge-msglm-7631d43c4807ab0ad0fff03b9d45115e384351bb.zip |
Change RemoteNickFormat replacement order. Closes #336
-rw-r--r-- | gateway/gateway.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go index 8b1223f0..0c55b0be 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -284,9 +284,9 @@ func (gw *Gateway) modifyUsername(msg config.Message, dest *bridge.Bridge) strin } nick = strings.Replace(nick, "{NOPINGNICK}", msg.Username[:i]+""+msg.Username[i:], -1) } - nick = strings.Replace(nick, "{NICK}", msg.Username, -1) nick = strings.Replace(nick, "{BRIDGE}", br.Name, -1) nick = strings.Replace(nick, "{PROTOCOL}", br.Protocol, -1) + nick = strings.Replace(nick, "{NICK}", msg.Username, -1) return nick } |