From 12d0b45c96d7388f2d651e4ab2ee0bc1638435e8 Mon Sep 17 00:00:00 2001 From: Jeremy Rand Date: Sun, 22 Nov 2020 22:58:54 +0000 Subject: [PATCH] Use Unicode escape sequence instead of raw ZWSP in gateway.modifyUsername Fixes a warning from stylecheck linter. --- gateway/gateway.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/gateway.go b/gateway/gateway.go index d321711a..6cff5c53 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -337,7 +337,7 @@ func (gw *Gateway) modifyUsername(msg *config.Message, dest *bridge.Bridge) stri } i++ } - nick = strings.ReplaceAll(nick, "{NOPINGNICK}", msg.Username[:i]+"​"+msg.Username[i:]) + nick = strings.ReplaceAll(nick, "{NOPINGNICK}", msg.Username[:i]+"\u200b"+msg.Username[i:]) } nick = strings.ReplaceAll(nick, "{BRIDGE}", br.Name)