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