Fix software version name field misstype, also return os field properly :)

This commit is contained in:
eleksir
2023-10-08 10:17:33 -07:00
parent 5b730c9684
commit ddd5e46dbf

View File

@@ -4,6 +4,7 @@ import (
"encoding/json"
"encoding/xml"
"fmt"
"runtime"
"sort"
"strings"
"time"
@@ -117,9 +118,9 @@ func parseEvent(e interface{}) { //nolint:maintidx,gocognit,gocyclo
if id, err := talk.IqVersionResponse(
v,
"bunyPresense-jabber-bot",
"1.с_чем-то",
"линупс",
"buny-jabber-bot",
"1.dev",
(strings.SplitN(runtime.GOOS, "/", 2))[0],
); err != nil {
err := fmt.Errorf(
"unable to send version info to jabber server: id=%s, err=%w",