summaryrefslogtreecommitdiff
path: root/src/plugins/plugin.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-06-14 16:35:06 +0200
committerSebastien Helleu <flashcode@flashtux.org>2009-06-14 16:35:06 +0200
commit92940e52f1e30e4021555deefbf16ffd0e318c1b (patch)
treefed35d6ed59cf2a0ea155bf61ecd1a3e3e9a662d /src/plugins/plugin.c
parent3379ac47578cbc6fd9e1260ab9a27b84244772b6 (diff)
downloadweechat-92940e52f1e30e4021555deefbf16ffd0e318c1b.zip
Do not auto-load hidden files in script plugins (bug #21390)
Diffstat (limited to 'src/plugins/plugin.c')
-rw-r--r--src/plugins/plugin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c
index 037bb4f1a..1299e77c9 100644
--- a/src/plugins/plugin.c
+++ b/src/plugins/plugin.c
@@ -697,6 +697,7 @@ plugin_auto_load ()
util_exec_on_files ((plugin_path2) ?
plugin_path2 : ((plugin_path) ?
plugin_path : CONFIG_STRING(config_plugin_path)),
+ 0,
NULL,
&plugin_auto_load_file);
if (plugin_path)
@@ -711,7 +712,7 @@ plugin_auto_load ()
{
snprintf (dir_name, strlen (WEECHAT_LIBDIR) + 16,
"%s/plugins", WEECHAT_LIBDIR);
- util_exec_on_files (dir_name, NULL, &plugin_auto_load_file);
+ util_exec_on_files (dir_name, 0, NULL, &plugin_auto_load_file);
free (dir_name);
}
}