summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-protocol.h
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-10-14 23:08:45 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-10-17 21:28:31 +0200
commit179822fb91a6dae34a22cf35f174c0df68917230 (patch)
treee78ce0419dc708ad6e69a46db2f9ef5b93dce12f /src/plugins/irc/irc-protocol.h
parent5e712d7145846b9b16a8dbc40ec06f2b8c1a7273 (diff)
downloadweechat-179822fb91a6dae34a22cf35f174c0df68917230.zip
irc: use parsed command parameters in "privmsg" command callback
Diffstat (limited to 'src/plugins/irc/irc-protocol.h')
-rw-r--r--src/plugins/irc/irc-protocol.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-protocol.h b/src/plugins/irc/irc-protocol.h
index 6551b90d0..a36559d4b 100644
--- a/src/plugins/irc/irc-protocol.h
+++ b/src/plugins/irc/irc-protocol.h
@@ -26,6 +26,7 @@
int \
irc_protocol_cb_##__command (struct t_irc_server *server, \
time_t date, \
+ const char *irc_message, \
struct t_hashtable *tags, \
const char *nick, \
const char *address, \
@@ -46,6 +47,7 @@
#define IRC_PROTOCOL_MIN_ARGS(__min_args) \
(void) date; \
+ (void) irc_message; \
(void) tags; \
(void) nick; \
(void) address; \
@@ -70,6 +72,7 @@
#define IRC_PROTOCOL_MIN_PARAMS(__min_params) \
(void) date; \
+ (void) irc_message; \
(void) tags; \
(void) nick; \
(void) address; \
@@ -117,7 +120,8 @@
struct t_irc_server;
typedef int (t_irc_recv_func)(struct t_irc_server *server,
- time_t date, struct t_hashtable *tags,
+ time_t date, const char *irc_message,
+ struct t_hashtable *tags,
const char *nick, const char *address,
const char *host, const char *command,
int ignored,