1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 21:36:37 +02:00

api: run hook_print callback also on empty messages

This commit is contained in:
Sébastien Helleu
2022-07-02 21:10:48 +02:00
parent 749bc26926
commit 1c7b431bc8
5 changed files with 17 additions and 7 deletions
+1 -1
View File
@@ -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) ?