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:
parent
2cc66576af
commit
20c0f1be3d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue