diff options
-rw-r--r-- | gateway/gateway.go | 1 | ||||
-rw-r--r-- | matterclient/matterclient.go | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go index 6529393f..a33a9a97 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -374,6 +374,7 @@ func (gw *Gateway) modifyUsername(msg config.Message, dest *bridge.Bridge) strin nick = strings.Replace(nick, "{BRIDGE}", br.Name, -1) nick = strings.Replace(nick, "{PROTOCOL}", br.Protocol, -1) + nick = strings.Replace(nick, "{GATEWAY}", gw.Name, -1) nick = strings.Replace(nick, "{LABEL}", br.GetString("Label"), -1) nick = strings.Replace(nick, "{NICK}", msg.Username, -1) return nick diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go index b86fbe3d..fbe331e9 100644 --- a/matterclient/matterclient.go +++ b/matterclient/matterclient.go @@ -344,7 +344,7 @@ func (m *MMClient) parseActionPost(rmsg *Message) { data := model.PostFromJson(strings.NewReader(rmsg.Raw.Data["post"].(string))) // we don't have the user, refresh the userlist if m.GetUser(data.UserId) == nil { - m.log.Infof("User %s is not known, ignoring message %s", data) + m.log.Infof("User %s is not known, ignoring message %s", data.UserId, data.Message) return } rmsg.Username = m.GetUserName(data.UserId) |