summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-02-21 13:38:27 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-02-21 13:38:27 +0100
commit84edf5443a6394dc84f8500724cd7b1132d8191b (patch)
treeeb2cabae8e3e5f3e230b956bd8ea4dcaafdb44a0 /src
parent9e2e59c3e18d54b2867af2a5d603e31b69c426b3 (diff)
downloadweechat-84edf5443a6394dc84f8500724cd7b1132d8191b.zip
guile: return WEECHAT_RC_ERROR in command /guile if arguments are wrong/missing
Diffstat (limited to 'src')
-rw-r--r--src/plugins/guile/weechat-guile.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/plugins/guile/weechat-guile.c b/src/plugins/guile/weechat-guile.c
index 221b288b5..155f88393 100644
--- a/src/plugins/guile/weechat-guile.c
+++ b/src/plugins/guile/weechat-guile.c
@@ -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;