aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/stanza_error.vala
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp-vala/src/module/stanza_error.vala')
-rw-r--r--xmpp-vala/src/module/stanza_error.vala7
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);
}