diff libpurple/protocols/jabber/buddy.c @ 26912:6028712210ca

Add a section break between resources in "Get info"
author Marcus Lundblad <ml@update.uu.se>
date Wed, 06 May 2009 19:01:31 +0000
parents 3912f55a1633
children 9ce0c5bc922c
line wrap: on
line diff
--- a/libpurple/protocols/jabber/buddy.c	Wed May 06 06:40:24 2009 +0000
+++ b/libpurple/protocols/jabber/buddy.c	Wed May 06 19:01:31 2009 +0000
@@ -852,6 +852,13 @@
 
 			jbr = resources->data;
 
+			/* put a section break between resources, this is not needed if
+			 we are at the first, because one was already added for the vcard
+			 section */
+			if (resources != jbi->jb->resources) {
+				purple_notify_user_info_prepend_section_break(user_info);
+			}
+
 			if(jbr->client.name) {
 				tmp = g_strdup_printf("%s%s%s", jbr->client.name,
 									  (jbr->client.version ? " " : ""),