1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16:37 +02:00

Fixed /topic completion when no topic set on current channel (bug #19322)

This commit is contained in:
Sebastien Helleu
2007-03-16 11:49:58 +00:00
parent 4d64128ef2
commit aa149dcfbc
6 changed files with 12 additions and 14 deletions
+3 -5
View File
@@ -671,11 +671,9 @@ completion_list_add_topic (t_completion *completion)
{
char *string;
if (!completion->server || !completion->channel
|| !((t_irc_channel *)(completion->channel))->topic
|| !((t_irc_channel *)(completion->channel))->topic[0])
completion_stop (completion);
else
if (completion->server && completion->channel
&& ((t_irc_channel *)(completion->channel))->topic
&& ((t_irc_channel *)(completion->channel))->topic[0])
{
if (cfg_irc_colors_send)
string = (char *)gui_color_decode_for_user_entry ((unsigned char *)((t_irc_channel *)(completion->channel))->topic);