mirror of
https://github.com/weechat/weechat.git
synced 2026-07-08 02:33:12 +02:00
core: use same return code and message in all commands when arguments are wrong/missing
This commit is contained in:
@@ -45,18 +45,6 @@
|
||||
return WEECHAT_RC_OK; \
|
||||
}
|
||||
|
||||
#define COMMAND_MIN_ARGS(__min, __command) \
|
||||
if (argc < __min) \
|
||||
{ \
|
||||
gui_chat_printf_date_tags ( \
|
||||
NULL, 0, \
|
||||
GUI_FILTER_TAG_NO_FILTER, \
|
||||
_("%sError: missing arguments for \"%s\" command"), \
|
||||
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR], \
|
||||
__command); \
|
||||
return WEECHAT_RC_ERROR; \
|
||||
}
|
||||
|
||||
struct t_gui_buffer;
|
||||
|
||||
extern int command_reload (void *data, struct t_gui_buffer *buffer,
|
||||
|
||||
Reference in New Issue
Block a user