summaryrefslogtreecommitdiff
path: root/src/plugins/python
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/python
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/python')
-rw-r--r--src/plugins/python/weechat-python.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/python/weechat-python.c b/src/plugins/python/weechat-python.c
index 8a5883327..edbc26b16 100644
--- a/src/plugins/python/weechat-python.c
+++ b/src/plugins/python/weechat-python.c
@@ -1201,7 +1201,7 @@ weechat_python_command_cb (const void *pointer, void *data,
{
/* load python script */
path_script = plugin_script_search_path (weechat_python_plugin,
- ptr_name);
+ ptr_name, 1);
weechat_python_load ((path_script) ? path_script : ptr_name,
NULL);
if (path_script)