From dceb8178534a77463edf620ff7aff1215a7e5ab4 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Mon, 8 Dec 2008 21:17:46 +0000 Subject: [PATCH] reply to suscriptions options queries with unsupported feature error (EJAB-713) SVN Revision: 1716 --- ChangeLog | 2 ++ src/mod_pubsub/mod_pubsub.erl | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index f7cf256c2..3ec6af245 100644 --- a/ChangeLog +++ b/ChangeLog @@ -23,6 +23,8 @@ * src/mod_pubsub/node_flat.erl: renamed from node_zoo + * src/mod_pubsub/mod_pubsub.erl: reply to suscriptions options queries + with unsupported feature error (EJAB-713) 2008-12-08 Mickael Remond diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl index 8a7c199c3..471f30346 100644 --- a/src/mod_pubsub/mod_pubsub.erl +++ b/src/mod_pubsub/mod_pubsub.erl @@ -949,6 +949,10 @@ iq_pubsub(Host, ServerHost, From, IQType, SubEl, _Lang, Access, Plugins) -> get_subscriptions(Host, From, Plugins); {get, "affiliations"} -> get_affiliations(Host, From, Plugins); + {get, "options"} -> + {error, extended_error(?ERR_FEATURE_NOT_IMPLEMENTED, unsupported, "subscription-options")}; + {set, "options"} -> + {error, extended_error(?ERR_FEATURE_NOT_IMPLEMENTED, unsupported, "subscription-options")}; _ -> {error, ?ERR_FEATURE_NOT_IMPLEMENTED} end;