forked from jshiffer/go-xmpp
It should fix #11 issue
This commit is contained in:
parent
e4e8b7448c
commit
a25b82d0a4
5
xmpp.go
5
xmpp.go
@ -238,10 +238,9 @@ func (c *Client) Recv() (chat Chat, err error) {
|
|||||||
|
|
||||||
// Send sends message text.
|
// Send sends message text.
|
||||||
func (c *Client) Send(chat Chat) {
|
func (c *Client) Send(chat Chat) {
|
||||||
fmt.Fprintf(c.tls, "<message to='%s' from='%s' type='chat' xml:lang='en'>"+
|
fmt.Fprintf(c.tls, "<message to='%s' type='chat' xml:lang='en'>"+
|
||||||
"<body>%s</body></message>",
|
"<body>%s</body></message>",
|
||||||
xmlEscape(chat.Remote), xmlEscape(c.jid),
|
xmlEscape(chat.Remote), xmlEscape(chat.Text))
|
||||||
xmlEscape(chat.Text))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// RFC 3920 C.1 Streams name space
|
// RFC 3920 C.1 Streams name space
|
||||||
|
Loading…
Reference in New Issue
Block a user