forked from jshiffer/go-xmpp
add SendOrg for send origin text
This commit is contained in:
parent
af110491a0
commit
c88c22763a
5
xmpp.go
5
xmpp.go
@ -400,6 +400,11 @@ func (c *Client) Send(chat Chat) {
|
||||
xmlEscape(chat.Remote), xmlEscape(chat.Type), xmlEscape(chat.Text))
|
||||
}
|
||||
|
||||
// Send origin
|
||||
func (c *Client) SendOrg(org string) {
|
||||
fmt.Fprint(c.conn, org)
|
||||
}
|
||||
|
||||
// RFC 3920 C.1 Streams name space
|
||||
type streamFeatures struct {
|
||||
XMLName xml.Name `xml:"http://etherx.jabber.org/streams features"`
|
||||
|
Loading…
Reference in New Issue
Block a user