summaryrefslogtreecommitdiff
path: root/src/plugins/plugins-interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/plugins-interface.c')
-rw-r--r--src/plugins/plugins-interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/plugins-interface.c b/src/plugins/plugins-interface.c
index 861856c2d..12083faf4 100644
--- a/src/plugins/plugins-interface.c
+++ b/src/plugins/plugins-interface.c
@@ -37,6 +37,7 @@
#include "../common/command.h"
#include "../common/weeconfig.h"
#include "../irc/irc.h"
+#include "../gui/gui.h"
/*
@@ -165,7 +166,7 @@ weechat_plugin_printf (t_weechat_plugin *plugin,
if (!plugin || !message)
return;
- ptr_buffer = plugin_find_buffer (server, channel);
+ ptr_buffer = gui_buffer_search (server, channel);
va_start (argptr, message);
vsnprintf (buf, sizeof (buf) - 1, message, argptr);
va_end (argptr);