summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fe-common/irc/fe-channels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/irc/fe-channels.c b/src/fe-common/irc/fe-channels.c
index 764531d8..b38db164 100644
--- a/src/fe-common/irc/fe-channels.c
+++ b/src/fe-common/irc/fe-channels.c
@@ -135,7 +135,7 @@ static void cmd_channel_list_joined(void)
g_string_sprintfa(nicks, "%s ", rec->nick);
}
- g_string_truncate(nicks, nicks->len-1);
+ if (nicks->len > 1) g_string_truncate(nicks, nicks->len-1);
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, IRCTXT_CHANLIST_LINE,
channel->name, mode, channel->server->tag, nicks->str);