1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 10:43:13 +02:00

irc: send parsed parameters to IRC command callbacks

This commit is contained in:
Sébastien Helleu
2021-10-10 18:27:18 +02:00
parent c4b4d80936
commit cbc4073815
2 changed files with 50 additions and 15 deletions
+7 -2
View File
@@ -34,7 +34,9 @@
int ignored, \
int argc, \
char **argv, \
char **argv_eol)
char **argv_eol, \
char **params, \
int num_params)
#define IRCB(__message, __decode_color, __keep_trailing_spaces, \
__func_cb) \
{ #__message, \
@@ -52,6 +54,8 @@
(void) ignored; \
(void) argv; \
(void) argv_eol; \
(void) params; \
(void) num_params; \
if (argc < __min_args) \
{ \
weechat_printf (server->buffer, \
@@ -81,7 +85,8 @@ typedef int (t_irc_recv_func)(struct t_irc_server *server,
const char *nick, const char *address,
const char *host, const char *command,
int ignored,
int argc, char **argv, char **argv_eol);
int argc, char **argv, char **argv_eol,
char **params, int num_params);
struct t_irc_protocol_msg
{