Fixed an RFC 6120 violation when sending IQ error replies. Thx jonasw.

This commit is contained in:
Martin Dosch 2018-08-07 22:29:38 +02:00
parent 1cf49e8121
commit 64f7cb9f27

View file

@ -205,7 +205,7 @@ func pingMUC(client *xmpp.Client, botJid string, Muc string, MucNick string) {
} else {
// Send error replies for all other IQs.
_, err := client.RawInformation(client.JID(), v.From, v.ID, "error",
string(v.Query))
string(v.Query)+"<error/>")
if err != nil {
log.Fatal(err)
}