summaryrefslogtreecommitdiff
path: root/src/search-channel.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-08-05 10:44:38 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-08-19 10:29:51 +0100
commit712a0697875bb32ea26b2e6e64a75ca0dd89615a (patch)
treec6d556eb9863c9d1988deea74f8412fa28ef2ff4 /src/search-channel.c
parent1c8ee37193a706e9d0dca701b07a89d24e58a95a (diff)
downloadtelepathy-gabble-712a0697875bb32ea26b2e6e64a75ca0dd89615a.tar.gz
parse_extended_search_results: ignore <reported> node and fix debug message if we hit an unknown node
Diffstat (limited to 'src/search-channel.c')
-rw-r--r--src/search-channel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/search-channel.c b/src/search-channel.c
index 329a67aa3..ab1ae146c 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;