forked from chteufleur/go-xmpp4steam
go fmt
This commit is contained in:
parent
abfe6de004
commit
7f76a35240
2
main.go
2
main.go
|
|
@ -131,7 +131,7 @@ func gatewayXmppSteamMessage() {
|
|||
|
||||
func gatewayXmppSteamAuthCode() {
|
||||
for {
|
||||
authCode := <- xmpp.ChanAuthCode
|
||||
authCode := <-xmpp.ChanAuthCode
|
||||
steam.AuthCode = authCode
|
||||
steam.Disconnect()
|
||||
time.Sleep(2 * time.Second)
|
||||
|
|
|
|||
|
|
@ -6,8 +6,6 @@ import (
|
|||
"log"
|
||||
)
|
||||
|
||||
|
||||
|
||||
const (
|
||||
CommandAuthcode = "steamAuthCodeCommand"
|
||||
)
|
||||
|
|
@ -25,7 +23,6 @@ func execDiscoCommand(iq *xmpp.Iq) {
|
|||
discoI := &xmpp.DiscoItem{JID: jid.Domain, Node: CommandAuthcode, Name: "Add Auth Code"}
|
||||
discoItem.Item = append(discoItem.Item, *discoI)
|
||||
|
||||
|
||||
reply.PayloadEncode(discoItem)
|
||||
comp.Out <- reply
|
||||
}
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ func SendPresence(status, tpye, message string) {
|
|||
}
|
||||
|
||||
func SendPresenceFrom(status, tpye, from, message, nick string) {
|
||||
/*
|
||||
/*
|
||||
if message == "" {
|
||||
comp.Out <- xmpp.Presence{To: PreferedJID, From: from, Show: status, Type: tpye, Nick: nick}
|
||||
} else if nick == "" {
|
||||
|
|
@ -142,7 +142,7 @@ func SendPresenceFrom(status, tpye, from, message, nick string) {
|
|||
} else {
|
||||
comp.Out <- xmpp.Presence{To: PreferedJID, From: from, Show: status, Type: tpye, Status: message, Nick: nick}
|
||||
}
|
||||
*/
|
||||
*/
|
||||
p := xmpp.Presence{To: PreferedJID, From: from}
|
||||
|
||||
if status != "" {
|
||||
|
|
|
|||
Loading…
Reference in New Issue