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