From 7ec8e81ec3402ce9074ad60b4700d212cea91bd5 Mon Sep 17 00:00:00 2001 From: Dominik Pataky Date: Sun, 10 Sep 2017 13:15:16 +0200 Subject: [PATCH] Fix MUC NoHistory invalid XML --- xmpp_muc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmpp_muc.go b/xmpp_muc.go index f88f1b6..0d2900f 100644 --- a/xmpp_muc.go +++ b/xmpp_muc.go @@ -48,7 +48,7 @@ func (c *Client) JoinMUC(jid, nick string, history_type, history int, history_da switch history_type { case NoHistory: return fmt.Fprintf(c.conn, "\n" + - "\n" + + "\n" + "", xmlEscape(jid), xmlEscape(nick), nsMUC) case CharHistory: @@ -90,7 +90,7 @@ func (c *Client) JoinProtectedMUC(jid, nick string, password string, history_typ case NoHistory: return fmt.Fprintf(c.conn, "\n" + "\n" + - "%s\n"+ + "%s\n"+ "", xmlEscape(jid), xmlEscape(nick), nsMUC, xmlEscape(password)) case CharHistory: