1
0
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:
Sebastien Helleu
2014-02-21 13:38:27 +01:00
parent 9e2e59c3e1
commit 84edf5443a
+3 -7
View File
@@ -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;