changeset 23226:e166f9e91d6d

Use g_list_length(jbi->jb->resources) here, as it's clearer since that's what's about to be enumerated. Thanks, Sadrul :)
author Evan Schoenberg <evan.s@dreskin.net>
date Tue, 27 May 2008 10:39:37 +0000
parents bac674d6dcf5
children 1bdf8223ba45 f7944b0ffe46
files libpurple/protocols/jabber/buddy.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/buddy.c	Tue May 27 07:11:38 2008 +0000
+++ b/libpurple/protocols/jabber/buddy.c	Tue May 27 10:39:37 2008 +0000
@@ -960,7 +960,7 @@
 		}
 #endif
 	} else {
-		gboolean multiple_resources = jbi->resources && (g_hash_table_size(jbi->resources) > 1);
+		gboolean multiple_resources = jbi->jb->resources && (g_list_length(jbi->jb->resources) > 1);
 
 		for(resources = jbi->jb->resources; resources; resources = resources->next) {
 			char *purdy = NULL;