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