diff options
author | Marvin W <git@larma.de> | 2019-08-29 00:44:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-29 00:44:59 +0200 |
commit | 9f613d5812f1893481f06d3806ef4f03048df2b8 (patch) | |
tree | d8d63db8c3cef6d3616fb78be0c50d40673b0d6e /xmpp-vala/src/module/stanza_error.vala | |
parent | f0c2ce0047debe75565877f5033ccdccfbd4b755 (diff) | |
parent | 6028fd15a81a084b63311bc61f7b48d9f3d00746 (diff) | |
download | dino-9f613d5812f1893481f06d3806ef4f03048df2b8.tar.gz dino-9f613d5812f1893481f06d3806ef4f03048df2b8.zip |
Merge pull request #592 from hrxi/gsoc_1
Add SOCKS5 bytestreams and a couple of other fixes
Diffstat (limited to 'xmpp-vala/src/module/stanza_error.vala')
-rw-r--r-- | xmpp-vala/src/module/stanza_error.vala | 5 |
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); } |