summaryrefslogtreecommitdiff
path: root/src/gui/gui-chat.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-08-15 12:16:06 +0200
committerSébastien Helleu <flashcode@flashtux.org>2018-08-15 12:16:06 +0200
commit8e939b089db38a427075dc69d1c8c6a2d6d1af77 (patch)
treec24b580c02a8662bd1bea4ee6f30e6a390913642 /src/gui/gui-chat.c
parent2f2263afa62b3cd4771e92b574966d34604e3d83 (diff)
downloadweechat-8e939b089db38a427075dc69d1c8c6a2d6d1af77.zip
core: fix comparison of strings in weechat_print modifier
Diffstat (limited to 'src/gui/gui-chat.c')
-rw-r--r--src/gui/gui-chat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/gui-chat.c b/src/gui/gui-chat.c
index b0b18ec7d..727dc5a4b 100644
--- a/src/gui/gui-chat.c
+++ b/src/gui/gui-chat.c
@@ -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;