summaryrefslogtreecommitdiff
path: root/src/plugins/tcl/weechat-tcl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/tcl/weechat-tcl.c')
-rw-r--r--src/plugins/tcl/weechat-tcl.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/tcl/weechat-tcl.c b/src/plugins/tcl/weechat-tcl.c
index c3dcad7d0..4fe36cfdd 100644
--- a/src/plugins/tcl/weechat-tcl.c
+++ b/src/plugins/tcl/weechat-tcl.c
@@ -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;