mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 12:26:40 +02:00
ruby: return WEECHAT_RC_ERROR in command /ruby if arguments are wrong/missing
This commit is contained in:
@@ -813,6 +813,8 @@ weechat_ruby_command_cb (void *data, struct t_gui_buffer *buffer,
|
||||
{
|
||||
weechat_ruby_unload_all ();
|
||||
}
|
||||
else
|
||||
return WEECHAT_RC_ERROR;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -862,12 +864,7 @@ weechat_ruby_command_cb (void *data, struct t_gui_buffer *buffer,
|
||||
ruby_quiet = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: unknown option for "
|
||||
"command \"%s\""),
|
||||
weechat_prefix ("error"), RUBY_PLUGIN_NAME, "ruby");
|
||||
}
|
||||
return WEECHAT_RC_ERROR;
|
||||
}
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
|
||||
Reference in New Issue
Block a user