Added origin CHANNEL to RemoteNickFormat. Updated config docs. [Fixes #515]

This commit is contained in:
Patrick Connolly
2018-10-11 14:59:26 +08:00
parent 914f32e9d0
commit 1d07b1faee
2 changed files with 15 additions and 66 deletions

View File

@@ -440,6 +440,7 @@ func (gw *Gateway) modifyUsername(msg config.Message, dest *bridge.Bridge) strin
nick = strings.Replace(nick, "{PROTOCOL}", br.Protocol, -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
}