From ce3b45b492a5ca146c3425f6afa08fefb9aea6d3 Mon Sep 17 00:00:00 2001 From: Chteufleur Date: Fri, 15 Apr 2016 22:58:49 +0200 Subject: [PATCH] Version 0.3.1 --- gateway/steam.go | 1 - gateway/xmpp.go | 3 +-- main.go | 2 +- xmpp/commands.go | 1 - 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/gateway/steam.go b/gateway/steam.go index 08469af..26e6227 100644 --- a/gateway/steam.go +++ b/gateway/steam.go @@ -117,7 +117,6 @@ func (g *GatewayInfo) mainSteam() { default: log.Printf("%s", LogSteamDebug, e) - // TODO send message } } } diff --git a/gateway/xmpp.go b/gateway/xmpp.go index fc27900..a56e9ea 100644 --- a/gateway/xmpp.go +++ b/gateway/xmpp.go @@ -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() { diff --git a/main.go b/main.go index 3523459..84c6ba3 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,7 @@ import ( ) const ( - Version = "go-xmpp4steam v0.3.0" + Version = "go-xmpp4steam v0.3.1" configurationFilePath = "xmpp4steam.cfg" ) diff --git a/xmpp/commands.go b/xmpp/commands.go index 2fefef4..f57f2a1 100644 --- a/xmpp/commands.go +++ b/xmpp/commands.go @@ -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 {