Skip to content

Commit

Permalink
Reformat fix for MUC NoHistory
Browse files Browse the repository at this point in the history
  • Loading branch information
bitkeks committed Sep 11, 2017
1 parent 7ec8e81 commit fe382e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xmpp_muc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "<presence to='%s/%s'>\n" +
"<x xmlns='%s' /></x>\n" +
"<x xmlns='%s' />\n" +
"</presence>",
xmlEscape(jid), xmlEscape(nick), nsMUC)
case CharHistory:
Expand Down Expand Up @@ -90,7 +90,8 @@ func (c *Client) JoinProtectedMUC(jid, nick string, password string, history_typ
case NoHistory:
return fmt.Fprintf(c.conn, "<presence to='%s/%s'>\n" +
"<x xmlns='%s'>\n" +
"<password>%s</password></x>\n"+
"<password>%s</password>" +
"</x>\n" +
"</presence>",
xmlEscape(jid), xmlEscape(nick), nsMUC, xmlEscape(password))
case CharHistory:
Expand Down

0 comments on commit fe382e4

Please sign in to comment.