summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-07-02 21:10:48 +0200
committerSébastien Helleu <flashcode@flashtux.org>2022-07-02 21:10:48 +0200
commit1c7b431bc8118207c7b54c8edfa0e5faab032c0d (patch)
tree420c97be5f4ab589ce253d3e6e6110b31ae9bfc7 /src
parent749bc2692636f3427267fd918c4eaf4c1d52abbe (diff)
downloadweechat-1c7b431bc8118207c7b54c8edfa0e5faab032c0d.zip
api: run hook_print callback also on empty messages
Diffstat (limited to 'src')
-rw-r--r--src/core/hook/wee-hook-print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hook/wee-hook-print.c b/src/core/hook/wee-hook-print.c
index b21ba088c..25986ebb5 100644
--- a/src/core/hook/wee-hook-print.c
+++ b/src/core/hook/wee-hook-print.c
@@ -126,7 +126,7 @@ hook_print_exec (struct t_gui_buffer *buffer, struct t_gui_line *line)
if (!weechat_hooks[HOOK_TYPE_PRINT])
return;
- if (!line->data->message || !line->data->message[0])
+ if (!line->data->message)
return;
prefix_no_color = (line->data->prefix) ?