changeset 24369:f4cb55854e87

Make jabber_resource_have_capability polute the log a little less...
author Marcus Lundblad <ml@update.uu.se>
date Thu, 06 Nov 2008 22:35:03 +0000
parents 9ea84135db24
children b4964c3f5f7c
files libpurple/protocols/jabber/buddy.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/buddy.c	Wed Nov 05 23:24:01 2008 +0000
+++ b/libpurple/protocols/jabber/buddy.c	Thu Nov 06 22:35:03 2008 +0000
@@ -2510,12 +2510,13 @@
 	}
 
 	for (iter = jbr->caps->features ; iter ; iter = g_list_next(iter)) {
-		purple_debug_info("jabber", "Found cap: %s\n", (char *)iter->data);
 		if (strcmp(iter->data, cap) == 0) {
+			purple_debug_info("jabber", "Found cap: %s\n", (char *)iter->data);
 			return TRUE;
 		}
 	}
 
+	purple_debug_info("jabber", "Cap %s not found\n", cap);
 	return FALSE;
 }