add SendOrg for send origin text

This commit is contained in:
Specode 2013-10-18 15:52:01 +08:00
parent af110491a0
commit c88c22763a

View File

@ -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"`