changeset 26831:7ff22eb86083

merge of '48b95d7d853b96052d4478dd475e60a97e7bda8b' and 'd25c9ed783b024f75fac25f2320ddf5df6907c36'
author Marcus Lundblad <ml@update.uu.se>
date Wed, 06 May 2009 19:03:22 +0000
parents 6028712210ca (diff) 6eb0e3a9c919 (current diff)
children 048dd3fa29d7
files
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed May 06 18:37:40 2009 +0000
+++ b/ChangeLog	Wed May 06 19:03:22 2009 +0000
@@ -33,6 +33,7 @@
 	* Better support for receiving remote users' nicknames.
 	* /affiliate and /role will now list the room members with the specified
 	  affiliation/role if possible. (Andrei Mozzhuhin)
+	* Put section breaks between resources to improve readability
 
 	Yahoo:
 	* P2P file transfers. (Sulabh Mahajan)
--- a/libpurple/protocols/jabber/buddy.c	Wed May 06 18:37:40 2009 +0000
+++ b/libpurple/protocols/jabber/buddy.c	Wed May 06 19:03:22 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 ? " " : ""),