summaryrefslogtreecommitdiff
path: root/src/plugins/javascript/weechat-js.cpp
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-09-22 22:51:44 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-09-22 22:51:44 +0200
commitd6e4e87faf90eacf9be316b024cc1dce0fd683ee (patch)
treea872666260be430bfc7eb2d7ea6e66e76e7744c0 /src/plugins/javascript/weechat-js.cpp
parent12106ae7ba0c149e2c3a2fe7fa65d48acc851249 (diff)
downloadweechat-d6e4e87faf90eacf9be316b024cc1dce0fd683ee.zip
script: fix removal of script in system directory while trying to install a script (closes #2019)
Diffstat (limited to 'src/plugins/javascript/weechat-js.cpp')
-rw-r--r--src/plugins/javascript/weechat-js.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/javascript/weechat-js.cpp b/src/plugins/javascript/weechat-js.cpp
index a33b2d1be..446586396 100644
--- a/src/plugins/javascript/weechat-js.cpp
+++ b/src/plugins/javascript/weechat-js.cpp
@@ -657,7 +657,7 @@ weechat_js_command_cb (const void *pointer, void *data,
{
/* load javascript script */
path_script = plugin_script_search_path (weechat_js_plugin,
- ptr_name);
+ ptr_name, 1);
weechat_js_load ((path_script) ? path_script : ptr_name,
NULL);
if (path_script)