1
0
Fork 0

Version 0.3.1

This commit is contained in:
Chteufleur 2016-04-15 22:58:49 +02:00
parent f9d7c619d2
commit ce3b45b492
4 changed files with 2 additions and 5 deletions

View File

@ -117,7 +117,6 @@ func (g *GatewayInfo) mainSteam() {
default:
log.Printf("%s", LogSteamDebug, e)
// TODO send message
}
}
}

View File

@ -109,8 +109,7 @@ func (g *GatewayInfo) ReceivedXMPP_Presence(presence *xmpp.Presence) {
func (g *GatewayInfo) ReceivedXMPP_Message(message *xmpp.Message) {
steamID := strings.SplitN(message.To, "@", 2)[0]
// TODO add subject if exist to the message
g.SendSteamMessage(steamID, message.Body)
g.SendSteamMessage(steamID, message.Subject+"\n"+message.Body)
}
func (g *GatewayInfo) XMPP_Disconnect() {

View File

@ -15,7 +15,7 @@ import (
)
const (
Version = "go-xmpp4steam v0.3.0"
Version = "go-xmpp4steam v0.3.1"
configurationFilePath = "xmpp4steam.cfg"
)

View File

@ -123,7 +123,6 @@ func execCommandAdHoc(iq *xmpp.Iq) {
dbUser.SteamLogin = steamLogin
dbUser.SteamPwd = steamPwd
// TODO update
isUserRegistred := database.GetLine(dbUser.Jid) != nil
var isSqlSuccess bool
if isUserRegistred {