aboutsummaryrefslogtreecommitdiffstats
path: root/root_commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'root_commands.c')
-rw-r--r--root_commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/root_commands.c b/root_commands.c
index 9ffd3818..48400cdd 100644
--- a/root_commands.c
+++ b/root_commands.c
@@ -1483,7 +1483,7 @@ void cmd_chat_list_finish(struct im_connection *ic)
ci = l->data;
topic = ci->topic ? ci->topic : "";
- padded = str_pad_and_truncate(ci->title, title_len, "[...]");
+ padded = str_pad_and_truncate(ci->title ? ci->title : "", title_len, "[...]");
irc_rootmsg(irc, iformat, ++i, padded, topic);
g_free(padded);
}