1
0
Fork 0

Do not send an empty line at the start of each steam message

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
This commit is contained in:
louiz’ 2016-08-12 11:33:17 +02:00
parent 699c7cb5c5
commit 1013266a09
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ func (g *GatewayInfo) ReceivedXMPP_Presence(presence *xmpp.Presence) {
func (g *GatewayInfo) ReceivedXMPP_Message(message *xmpp.Message) { func (g *GatewayInfo) ReceivedXMPP_Message(message *xmpp.Message) {
steamID := strings.SplitN(message.To, "@", 2)[0] 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() { func (g *GatewayInfo) XMPP_Disconnect() {