diff options
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 4cf4e0ec..8ca504e5 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -234,6 +234,7 @@ func (gw *Gateway) modifyUsername(msg *config.Message, dest *bridge.Bridge) { if nick == "" { nick = dest.Config.RemoteNickFormat } + nick = strings.Replace(nick, "{NOPINGNICK}", msg.Username[:1]+""+msg.Username[1:], -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) |