pidgin: a32006b9: Make jabber_resource_have_capability pol...

malu at pidgin.im malu at pidgin.im
Thu Nov 6 17:40:29 EST 2008


-----------------------------------------------------------------
Revision: a32006b99c498657c8e6578cdb526265064d7e98
Ancestor: 9a91956125003141d6eb6d89094aa76ae479879a
Author: malu at pidgin.im
Date: 2008-11-06T22:35:03
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/a32006b99c498657c8e6578cdb526265064d7e98

Modified files:
        libpurple/protocols/jabber/buddy.c

ChangeLog: 

Make jabber_resource_have_capability polute the log a little less...

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/buddy.c	69039f61c78b7d32d53c0cca4e92405ec580900b
+++ libpurple/protocols/jabber/buddy.c	b687d1cce701f26584534067479bb48e29893101
@@ -2510,12 +2510,13 @@ jabber_resource_has_capability(const Jab
 	}
 
 	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;
 }
 


More information about the Commits mailing list