Fix software version name field misstype, also return os field properly :)
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user