1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 20:36:38 +02:00

script: fix removal of script in system directory while trying to install a script (closes #2019)

This commit is contained in:
Sébastien Helleu
2023-09-22 22:51:44 +02:00
parent 12106ae7ba
commit d6e4e87faf
11 changed files with 32 additions and 26 deletions
+1 -1
View File
@@ -975,7 +975,7 @@ weechat_lua_command_cb (const void *pointer, void *data,
{
/* load lua script */
path_script = plugin_script_search_path (weechat_lua_plugin,
ptr_name);
ptr_name, 1);
weechat_lua_load ((path_script) ? path_script : ptr_name,
NULL);
if (path_script)