aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/stanza_error.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2018-08-19 23:27:02 +0100
committerfiaxh <git@mx.ax.lt>2018-08-22 20:29:24 +0200
commit4be8c92a2c0e454ae217aea8f8eac69c99416214 (patch)
treed705773699389699d8165a4cef8b6712f2849dd8 /xmpp-vala/src/module/stanza_error.vala
parentee5c838a6ba85c9d6e72ac2941a7994505aaa4fc (diff)
downloaddino-4be8c92a2c0e454ae217aea8f8eac69c99416214.tar.gz
dino-4be8c92a2c0e454ae217aea8f8eac69c99416214.zip
In-Band Registration
Diffstat (limited to 'xmpp-vala/src/module/stanza_error.vala')
-rw-r--r--xmpp-vala/src/module/stanza_error.vala6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmpp-vala/src/module/stanza_error.vala b/xmpp-vala/src/module/stanza_error.vala
index 51aa2629..c45ff4e3 100644
--- a/xmpp-vala/src/module/stanza_error.vala
+++ b/xmpp-vala/src/module/stanza_error.vala
@@ -36,6 +36,10 @@ namespace Xmpp {
get { return error_node.get_attribute("by"); }
}
+ public string? text {
+ get { return error_node.get_deep_string_content("urn:ietf:params:xml:ns:xmpp-stanzas:text"); }
+ }
+
public string condition {
get {
Gee.List<StanzaNode> subnodes = error_node.sub_nodes;
@@ -57,7 +61,7 @@ namespace Xmpp {
}
public StanzaNode stanza;
- private StanzaNode error_node;
+ public StanzaNode error_node;
public ErrorStanza.from_stanza(StanzaNode stanza) {
this.stanza = stanza;