mirror of
https://salsa.debian.org/mdosch/feed-to-muc.git
synced 2024-11-22 22:18:39 +01:00
Fixed an RFC 6120 violation when sending IQ error replies (hopefully this time for real). Thx jonasw.
This commit is contained in:
parent
64f7cb9f27
commit
3bdfea029e
1 changed files with 3 additions and 2 deletions
|
@ -204,8 +204,9 @@ func pingMUC(client *xmpp.Client, botJid string, Muc string, MucNick string) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Send error replies for all other IQs.
|
// Send error replies for all other IQs.
|
||||||
_, err := client.RawInformation(client.JID(), v.From, v.ID, "error",
|
_, err := client.RawInformation(client.JID(), v.From, v.ID, "error", string(v.Query)+
|
||||||
string(v.Query)+"<error/>")
|
"<error type='cancel'><feature-not-implemented "+
|
||||||
|
"xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/><error/>")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue