1
0
Fork 0
This commit is contained in:
Chteufleur 2016-04-09 13:50:19 +02:00
parent abfe6de004
commit 7f76a35240
3 changed files with 56 additions and 59 deletions

View File

@ -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)

View File

@ -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
}

View File

@ -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 != "" {