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. Thx jonasw.
This commit is contained in:
parent
1cf49e8121
commit
64f7cb9f27
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ 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/>")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue