diff options
author | fiaxh <git@lightrise.org> | 2019-07-16 21:15:47 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2019-07-16 21:15:47 +0200 |
commit | 30353e92d63c033857ad0396c921b3bf5cab44c3 (patch) | |
tree | ec80b9a1b778605643145a2eaecc5632152f1da4 /xmpp-vala/src/module/stanza_error.vala | |
parent | 4b15c444db839a0117dd5ee2704c378d0fcb2fd1 (diff) | |
parent | 4b6fe6bf7f86f665238d709c30a777dbc6c81acf (diff) | |
download | dino-30353e92d63c033857ad0396c921b3bf5cab44c3.tar.gz dino-30353e92d63c033857ad0396c921b3bf5cab44c3.zip |
Merge branch 'gsoc_0' of https://github.com/hrxi/dino into hrxi-gsoc_0
Diffstat (limited to 'xmpp-vala/src/module/stanza_error.vala')
-rw-r--r-- | xmpp-vala/src/module/stanza_error.vala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xmpp-vala/src/module/stanza_error.vala b/xmpp-vala/src/module/stanza_error.vala index 651e8d2b..c108b02a 100644 --- a/xmpp-vala/src/module/stanza_error.vala +++ b/xmpp-vala/src/module/stanza_error.vala @@ -82,8 +82,8 @@ namespace Xmpp { public ErrorStanza.bad_request(string? human_readable = null) { this.build(TYPE_MODIFY, CONDITION_BAD_REQUEST, human_readable, null); } - public ErrorStanza.feature_not_implemented(StanzaNode? application_condition = null) { - this.build(TYPE_MODIFY, CONDITION_FEATURE_NOT_IMPLEMENTED, null, application_condition); + public ErrorStanza.feature_not_implemented(string? human_readable = null) { + this.build(TYPE_MODIFY, CONDITION_FEATURE_NOT_IMPLEMENTED, human_readable, null); } public ErrorStanza.item_not_found(StanzaNode? application_condition = null) { this.build(TYPE_CANCEL, CONDITION_ITEM_NOT_FOUND, null, application_condition); @@ -91,6 +91,9 @@ namespace Xmpp { public ErrorStanza.not_acceptable(string? human_readable = null) { this.build(TYPE_MODIFY, CONDITION_NOT_ACCEPTABLE, human_readable, null); } + public ErrorStanza.not_allowed(string? human_readable = null) { + this.build(TYPE_CANCEL, CONDITION_NOT_ALLOWED, human_readable, null); + } public ErrorStanza.service_unavailable() { this.build(TYPE_CANCEL, CONDITION_SERVICE_UNAVAILABLE, null, null); } |