1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 11:13:12 +02:00

core: fix comparison of strings in weechat_print modifier

This commit is contained in:
Sébastien Helleu
2018-08-15 12:16:06 +02:00
parent 2f2263afa6
commit 8e939b089d
+2 -2
View File
@@ -768,7 +768,7 @@ gui_chat_printf_date_tags_internal (struct t_gui_buffer *buffer,
string);
if (new_string)
{
if (!new_string[0] && message[0])
if (!new_string[0] && string[0])
{
/*
* modifier returned empty message, then we'll not
@@ -776,7 +776,7 @@ gui_chat_printf_date_tags_internal (struct t_gui_buffer *buffer,
*/
goto no_print;
}
else if (strcmp (message, new_string) != 0)
else if (strcmp (string, new_string) != 0)
{
/* use new message if there are changes */
pos_prefix = NULL;