mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 16:23:14 +02:00
guile: return WEECHAT_RC_ERROR in command /guile if arguments are wrong/missing
This commit is contained in:
@@ -625,6 +625,8 @@ weechat_guile_command_cb (void *data, struct t_gui_buffer *buffer,
|
||||
{
|
||||
weechat_guile_unload_all ();
|
||||
}
|
||||
else
|
||||
return WEECHAT_RC_ERROR;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -685,13 +687,7 @@ weechat_guile_command_cb (void *data, struct t_gui_buffer *buffer,
|
||||
weechat_guile_stdout_flush ();
|
||||
}
|
||||
else
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: unknown option for "
|
||||
"command \"%s\""),
|
||||
weechat_prefix ("error"), GUILE_PLUGIN_NAME,
|
||||
"guile");
|
||||
}
|
||||
return WEECHAT_RC_ERROR;
|
||||
}
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
|
||||
Reference in New Issue
Block a user