aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala
diff options
context:
space:
mode:
authorhrxi <hrrrxi@gmail.com>2019-07-21 02:12:55 +0200
committerhrxi <hrrrxi@gmail.com>2019-08-05 17:17:17 +0200
commit9bbcff4afed1d30b7ea476f38cf2971516f1ccc3 (patch)
treeb3910ba13788f21ceef5d1eaf924faf142f39744 /xmpp-vala
parent1be1d471222b6d3763df1ad9b9d3b631ac8185f1 (diff)
downloaddino-9bbcff4afed1d30b7ea476f38cf2971516f1ccc3.tar.gz
dino-9bbcff4afed1d30b7ea476f38cf2971516f1ccc3.zip
Fix human_readable in stanza errors
Diffstat (limited to 'xmpp-vala')
-rw-r--r--xmpp-vala/src/module/stanza_error.vala5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmpp-vala/src/module/stanza_error.vala b/xmpp-vala/src/module/stanza_error.vala
index c108b02a..a5c3956c 100644
--- a/xmpp-vala/src/module/stanza_error.vala
+++ b/xmpp-vala/src/module/stanza_error.vala
@@ -75,7 +75,7 @@ namespace Xmpp {
error_node.put_node(new StanzaNode.build("text", ERROR_NS_URI)
.add_self_xmlns()
.put_attribute("xml:lang", "en")
- .put_node(new StanzaNode.text(text))
+ .put_node(new StanzaNode.text(human_readable))
);
}
}
@@ -94,6 +94,9 @@ namespace Xmpp {
public ErrorStanza.not_allowed(string? human_readable = null) {
this.build(TYPE_CANCEL, CONDITION_NOT_ALLOWED, human_readable, null);
}
+ public ErrorStanza.resource_constraint(string? human_readable = null) {
+ this.build(TYPE_WAIT, CONDITION_RESOURCE_CONSTRAINT, human_readable, null);
+ }
public ErrorStanza.service_unavailable() {
this.build(TYPE_CANCEL, CONDITION_SERVICE_UNAVAILABLE, null, null);
}