forked from chteufleur/go-xmpp4steam
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:
parent
699c7cb5c5
commit
1013266a09
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue