[telepathy-gabble/master] Add stub xforms block to do_search

Will Thompson will.thompson at collabora.co.uk
Wed Aug 26 09:21:53 PDT 2009


---
 src/search-channel.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/search-channel.c b/src/search-channel.c
index db4a7fd..e02a9de 100644
--- a/src/search-channel.c
+++ b/src/search-channel.c
@@ -620,7 +620,17 @@ do_search (GabbleSearchChannel *chan,
   query = lm_message_node_add_child (msg->node, "query", NULL);
   lm_message_node_set_attribute (query, "xmlns", NS_SEARCH);
 
-  build_unextended_query (query, terms);
+  if (chan->priv->xforms)
+    {
+      g_set_error (error, TP_ERRORS, TP_ERROR_NOT_IMPLEMENTED,
+          "server uses data forms, which are not yet implemented in Gabble");
+      lm_message_unref (msg);
+      return FALSE;
+    }
+  else
+    {
+      build_unextended_query (query, terms);
+    }
 
   DEBUG ("Sending search");
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list