[telepathy-gabble/master] parse_extended_search_results: ignore <reported> node and fix debug message if we hit an unknown node
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Wed Aug 26 09:22:10 PDT 2009
---
src/search-channel.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/search-channel.c b/src/search-channel.c
index 329a67a..ab1ae14 100644
--- a/src/search-channel.c
+++ b/src/search-channel.c
@@ -794,11 +794,11 @@ parse_extended_search_results (GabbleSearchChannel *chan,
if (!tp_strdiff (item->name, "item"))
parse_extended_result_item (chan, handles, item);
else if (!tp_strdiff (item->name, "reported"))
- /* TODO: check reported? */
- ;
+ /* Ignore <reported> node */
+ continue;
else
- DEBUG ("found <%s/> in <query/> rather than <item/>, skipping",
- item->name);
+ DEBUG ("found <%s/> in <x/> rather than <item/> and <reported/>, "
+ "skipping", item->name);
}
return TRUE;
--
1.5.6.5
More information about the telepathy-commits
mailing list