From 7631d43c4807ab0ad0fff03b9d45115e384351bb Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 14 Jan 2018 16:55:32 +0100 Subject: Change RemoteNickFormat replacement order. Closes #336 --- gateway/gateway.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gateway') 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 } -- cgit v1.2.3