mirror of
https://github.com/weechat/weechat.git
synced 2026-07-02 15:53:12 +02:00
api: return value in function command(), remove WeeChat error after command callback if return code is WEECHAT_RC_ERROR
This commit is contained in:
@@ -815,8 +815,7 @@ unalias_command_cb (void *data, struct t_gui_buffer *buffer, int argc,
|
||||
(void) buffer;
|
||||
(void) argv_eol;
|
||||
|
||||
if (argc < 2)
|
||||
return WEECHAT_RC_ERROR;
|
||||
WEECHAT_COMMAND_MIN_ARGS(2, "");
|
||||
|
||||
for (i = 1; i < argc; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user