Do not overwrite topics with "".

If channel topic is "", do not overwrite default bitlbee's topic which has
namehint in it (currently in "Server/channel" format, and might help
distinguish between channels with similar names.
This commit is contained in:
Artem Savkov 2016-01-12 17:15:18 +01:00
parent 2cc66576af
commit 20c0f1be3d
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ static void discord_handle_channel(struct im_connection *ic, json_value *cinfo,
title = g_strdup_printf("%s/%s", sinfo->name, name);
struct groupchat *gc = imcb_chat_new(ic, title);
imcb_chat_name_hint(gc, name);
if (topic != NULL) {
if (topic != NULL && strlen(topic) > 0) {
imcb_chat_topic(gc, "root", (char*)topic, 0);
}
g_free(title);