diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common/fifo.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/fifo.c b/src/common/fifo.c index 36a6c850e..94ebce332 100644 --- a/src/common/fifo.c +++ b/src/common/fifo.c @@ -114,6 +114,14 @@ fifo_exec (char *text) pos_msg = text + 1; ptr_server = SERVER(gui_current_window->buffer); ptr_buffer = gui_current_window->buffer; + + if (!ptr_server) + { + irc_display_prefix (NULL, PREFIX_ERROR); + gui_printf (NULL, _("%s invalid buffer for displaying text via FIFO pipe\n"), + WEECHAT_WARNING); + return; + } } else { |