libpurple/protocols/jabber/si.c

changeset 24816
bd870d9ff0ab
parent 24712
134bd2024c88
child 25110
40b3fffdb00b
child 26009
77febebf334c
--- a/libpurple/protocols/jabber/si.c	Thu Nov 27 05:51:03 2008 +0000
+++ b/libpurple/protocols/jabber/si.c	Thu Nov 27 05:54:09 2008 +0000
@@ -1085,7 +1085,7 @@
 
 			purple_notify_error(jsx->js->gc, _("File Send Failed"), _("File Send Failed"), msg);
 			g_free(msg);
-		} else if(g_list_length(jb->resources) == 1) {
+		} else if(!jb->resources->next) {
 			/* only 1 resource online (probably our most common case)
 			 * so no need to ask who to send to */
 			jbr = jb->resources->data;

mercurial