From 9bbcff4afed1d30b7ea476f38cf2971516f1ccc3 Mon Sep 17 00:00:00 2001 From: hrxi Date: Sun, 21 Jul 2019 02:12:55 +0200 Subject: Fix human_readable in stanza errors --- xmpp-vala/src/module/stanza_error.vala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xmpp-vala/src') 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); } -- cgit v1.2.3-54-g00ecf