changeset 23078:a7c09c653558

Don't put a space in front of the code if there is no text to go before it.
author Evan Schoenberg <evan.s@dreskin.net>
date Wed, 21 May 2008 01:56:52 +0000
parents 9d331ad0a8dc
children 8fbfe45506a2 c2035c3ef2dc
files libpurple/protocols/jabber/message.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/message.c	Wed May 21 01:49:03 2008 +0000
+++ b/libpurple/protocols/jabber/message.c	Wed May 21 01:56:52 2008 +0000
@@ -411,7 +411,7 @@
 			}
 
 			if(code)
-				code_txt = g_strdup_printf(_(" (Code %s)"), code);
+				code_txt = g_strdup_printf(_("%s(Code %s)"), (text ? " " : ""), code);
 
 			if(!jm->error)
 				jm->error = g_strdup_printf("%s%s", text ? text : "",