summaryrefslogtreecommitdiff
path: root/src/irc/proxy/dump.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2004-08-19 23:24:24 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2004-08-19 23:24:24 +0000
commit334b07ac286e16e71299404a57211d7492621a9a (patch)
tree9e163863440be28c76504b44db3da0258141188a /src/irc/proxy/dump.c
parentcab719eb922cec2f48428ae527b9cf42bb818cd8 (diff)
downloadirssi-334b07ac286e16e71299404a57211d7492621a9a.zip
005 fix. Patch by Valentin Batz
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3281 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/proxy/dump.c')
-rw-r--r--src/irc/proxy/dump.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/irc/proxy/dump.c b/src/irc/proxy/dump.c
index d7e3c047..f98bee94 100644
--- a/src/irc/proxy/dump.c
+++ b/src/irc/proxy/dump.c
@@ -217,7 +217,10 @@ void proxy_client_reset_nick(CLIENT_REC *client)
static void proxy_dump_data_005(gpointer key, gpointer value, gpointer context)
{
- g_string_sprintfa(context, "%s=%s ", (char *)key, (char *)value);
+ if (*(char *)value != '\0')
+ g_string_sprintfa(context, "%s=%s ", (char *)key, (char *)value);
+ else
+ g_string_sprintfa(context, "%s ", (char *)key);
}
void proxy_dump_data(CLIENT_REC *client)