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

script: fix state of script plugins when list of scripts has not been downloaded

The problem happened when doing "/script load script.py" if the scripts list
has not been downloaded (with "/script update"): WeeChat displays that python
plugin is not loaded (which is wrong).
This commit is contained in:
Sébastien Helleu
2015-03-18 07:25:26 +01:00
parent 11debc7cae
commit 6c4b574945
6 changed files with 29 additions and 11 deletions
+2 -1
View File
@@ -977,7 +977,8 @@ script_buffer_input_cb (void *data, struct t_gui_buffer *buffer,
/* refresh buffer */
if (strcmp (input_data, "$") == 0)
{
script_get_loaded_plugins_and_scripts ();
script_get_loaded_plugins ();
script_get_scripts ();
script_repo_remove_all ();
script_repo_file_read (1);
script_buffer_refresh (1);