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:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user