mirror of
https://github.com/weechat/weechat.git
synced 2026-06-23 11:26:38 +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:
@@ -960,7 +960,7 @@ weechat_python_command_cb (void *data, struct t_gui_buffer *buffer,
|
||||
weechat_python_unload_all ();
|
||||
}
|
||||
else
|
||||
return WEECHAT_RC_ERROR;
|
||||
WEECHAT_COMMAND_ERROR;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1010,7 +1010,7 @@ weechat_python_command_cb (void *data, struct t_gui_buffer *buffer,
|
||||
python_quiet = 0;
|
||||
}
|
||||
else
|
||||
return WEECHAT_RC_ERROR;
|
||||
WEECHAT_COMMAND_ERROR;
|
||||
}
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
|
||||
Reference in New Issue
Block a user