From c88c22763aea019b4e99ade78a6526af89a089b3 Mon Sep 17 00:00:00 2001 From: Specode <0x0000e000@gmail.com> Date: Fri, 18 Oct 2013 15:52:01 +0800 Subject: [PATCH] add SendOrg for send origin text --- xmpp.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xmpp.go b/xmpp.go index 90db6ba..3f9f527 100644 --- a/xmpp.go +++ b/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"`