summaryrefslogtreecommitdiff
path: root/src/plugins/buflist
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-06-20 22:02:06 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-06-20 22:02:06 +0200
commit4827ede798d6d412803d18f1ad91d98b5a03e3c7 (patch)
tree4ebad3e376b43e78e47295e9bd322a0c13ac0b38 /src/plugins/buflist
parentc15c30770ebdc4dd2abfb9aa9e6feafa1d7ba2d3 (diff)
downloadweechat-4827ede798d6d412803d18f1ad91d98b5a03e3c7.zip
buflist: display the warning about script buffers.pl only if buflist is enabled
Diffstat (limited to 'src/plugins/buflist')
-rw-r--r--src/plugins/buflist/buflist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/buflist/buflist.c b/src/plugins/buflist/buflist.c
index 97d33387c..404842687 100644
--- a/src/plugins/buflist/buflist.c
+++ b/src/plugins/buflist/buflist.c
@@ -370,6 +370,10 @@ buflist_script_loaded_cb (const void *pointer, void *data, const char *signal,
(void) signal;
(void) type_data;
+ /* display a warning only if buflist is enabled */
+ if (!weechat_config_boolean (buflist_config_look_enabled))
+ return WEECHAT_RC_OK;
+
if (!signal_data)
return WEECHAT_RC_OK;