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

script: display error when installing/removing/loading script if plugin for language is not loaded

This commit is contained in:
Sebastien Helleu
2012-09-04 12:57:26 +02:00
parent 3849cb49bc
commit 7756be5fea
23 changed files with 577 additions and 268 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ void
script_command_action (struct t_gui_buffer *buffer, const char *action,
const char *arguments, int need_repository)
{
struct t_repo_script *ptr_script;
struct t_script_repo *ptr_script;
char str_action[4096];
long value;
char *error;
@@ -155,7 +155,7 @@ script_command_script (void *data, struct t_gui_buffer *buffer, int argc,
if (weechat_strcasecmp (argv[1], "search") == 0)
{
if (repo_scripts)
if (scripts_repo)
script_repo_filter_scripts ((argc > 2) ? argv_eol[2] : NULL);
else
script_repo_set_filter ((argc > 2) ? argv_eol[2] : NULL);