changeset 18882:b69623379f9a

In lists, only insert a | between elements, no longer at the end also.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Tue, 07 Aug 2007 02:54:46 +0000
parents 3ec39ff6b407
children 0ca629db64a4
files libpurple/protocols/myspace/message.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/myspace/message.c	Tue Aug 07 02:51:34 2007 +0000
+++ b/libpurple/protocols/myspace/message.c	Tue Aug 07 02:54:46 2007 +0000
@@ -758,7 +758,11 @@
 
                 for (gl = (GList *)elem->data; gl != NULL; gl = g_list_next(gl))
                 {
-                    g_string_append_printf(gs, "%s|", (gchar*)(gl->data));
+                    g_string_append_printf(gs, "%s", (gchar*)(gl->data));
+                    
+                    /* All but last element is separated by a bar. */
+                    if (g_list_next(gl)) 
+                        g_string_append(gs, "|");
                 }
                 
                 return gs->str;