From 78a9101114f76602c9720fc15d49f0350645db23 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 5 Apr 2009 17:29:57 +0200 Subject: Fix script installation --- src/plugins/scripts/script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/scripts/script.c b/src/plugins/scripts/script.c index 98e89c5af..e609afdca 100644 --- a/src/plugins/scripts/script.c +++ b/src/plugins/scripts/script.c @@ -804,12 +804,12 @@ script_action_install (struct t_weechat_plugin *weechat_plugin, base_name = basename (name); /* unload script, if script is loaded */ - ptr_script = script_search_by_full_name (scripts, argv[i]); + ptr_script = script_search_by_full_name (scripts, base_name); if (ptr_script) (*script_unload) (ptr_script); /* remove script file(s) */ - script_remove_file (weechat_plugin, argv[i], 0); + script_remove_file (weechat_plugin, base_name, 0); /* move file from install dir to language dir */ dir_home = weechat_info_get ("weechat_dir", ""); -- cgit v1.2.3