diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-04-05 17:29:57 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-04-05 17:29:57 +0200 |
commit | 78a9101114f76602c9720fc15d49f0350645db23 (patch) | |
tree | a443a02dc3fe38dbf8ca41775e73b6537b32e0d0 | |
parent | 08a07c145a47f868f49f48582905e8bff356c546 (diff) | |
download | weechat-78a9101114f76602c9720fc15d49f0350645db23.zip |
Fix script installation
-rw-r--r-- | src/plugins/scripts/script.c | 4 |
1 files 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", ""); |