1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 23:06:38 +02:00

irc: use same return code and message in all commands when arguments are wrong/missing

This commit is contained in:
Sebastien Helleu
2014-02-21 13:10:05 +01:00
parent 898c9dc195
commit f535aad9fc
2 changed files with 900 additions and 1128 deletions
File diff suppressed because it is too large Load Diff
-7
View File
@@ -23,13 +23,6 @@
struct t_irc_server;
struct t_irc_channel;
#define IRC_COMMAND_TOO_FEW_ARGUMENTS(__buffer, __command) \
weechat_printf (__buffer, \
_("%s%s: too few arguments for \"%s\" command"), \
weechat_prefix ("error"), IRC_PLUGIN_NAME, \
__command); \
return WEECHAT_RC_OK;
#define IRC_COMMAND_CHECK_SERVER(__command, __check_connection) \
if (!ptr_server) \
{ \