mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 00:33:13 +02:00
tcl: return WEECHAT_RC_ERROR in command /tcl if arguments are wrong/missing
This commit is contained in:
@@ -549,6 +549,8 @@ weechat_tcl_command_cb (void *data, struct t_gui_buffer *buffer,
|
||||
{
|
||||
weechat_tcl_unload_all ();
|
||||
}
|
||||
else
|
||||
return WEECHAT_RC_ERROR;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -598,12 +600,7 @@ weechat_tcl_command_cb (void *data, struct t_gui_buffer *buffer,
|
||||
tcl_quiet = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: unknown option for "
|
||||
"command \"%s\""),
|
||||
weechat_prefix ("error"), TCL_PLUGIN_NAME, "tcl");
|
||||
}
|
||||
return WEECHAT_RC_ERROR;
|
||||
}
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
|
||||
Reference in New Issue
Block a user