From 1013266a09c10a027c865d3b2633f42368aaf776 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Fri, 12 Aug 2016 11:33:17 +0200 Subject: [PATCH] Do not send an empty line at the start of each steam message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We shouldn’t try to include the “Subject” part of the message: it’s always empty, because this is only sent by MUC servers to signal the room’s topic. This is not used in one-to-one conversations. fix #20 --- gateway/xmpp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/xmpp.go b/gateway/xmpp.go index 924fe4b..1ccdfc3 100644 --- a/gateway/xmpp.go +++ b/gateway/xmpp.go @@ -124,7 +124,7 @@ func (g *GatewayInfo) ReceivedXMPP_Presence(presence *xmpp.Presence) { func (g *GatewayInfo) ReceivedXMPP_Message(message *xmpp.Message) { steamID := strings.SplitN(message.To, "@", 2)[0] - g.SendSteamMessage(steamID, message.Subject+"\n"+message.Body) + g.SendSteamMessage(steamID, message.Body) } func (g *GatewayInfo) XMPP_Disconnect() {