# HG changeset patch
# User Jeffrey Connelly <jaconnel@calpoly.edu>
# Date 1186455286 0
# Node ID b69623379f9a15caefdcc71e3be6f2f50deef719
# Parent  3ec39ff6b407412249f106581e8f7d8ace1687b9
In lists, only insert a | between elements, no longer at the end also.

diff -r 3ec39ff6b407 -r b69623379f9a libpurple/protocols/myspace/message.c
--- 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;