diff --git a/xmpp.go b/xmpp.go index ef2107b..2378ef5 100644 --- a/xmpp.go +++ b/xmpp.go @@ -248,13 +248,12 @@ func (c *Client) Recv() (event interface{}, err error) { // Send sends message text. func (c *Client) Send(chat Chat) { - fmt.Fprintf(c.tls, ""+ + fmt.Fprintf(c.tls, ""+ "%s", - xmlEscape(chat.Remote), xmlEscape(chat.Text)) + xmlEscape(chat.Remote), xmlEscape(chat.Type), xmlEscape(chat.Text)) } // RFC 3920 C.1 Streams name space - type streamFeatures struct { XMLName xml.Name `xml:"http://etherx.jabber.org/streams features"` StartTLS tlsStartTLS