summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-protocol.h
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-11-23 21:31:22 +0100
committerSebastien Helleu <flashcode@flashtux.org>2012-11-23 21:31:22 +0100
commit53b8cdfef328017b08bc575854d5f6a5ad6ef1d3 (patch)
tree674e9f63a467b127e0ee6b284925a653afc0f791 /src/plugins/irc/irc-protocol.h
parent777f977ea516bbf367c01deb7db4120ec70d5839 (diff)
downloadweechat-53b8cdfef328017b08bc575854d5f6a5ad6ef1d3.zip
irc: add support of tags in messages, add support of "server-time" capability (task #12255)
For a server called "znc" in WeeChat, following command will enable the "server-time" capability: /set irc.server.znc.capabilities "znc.in/server-time"
Diffstat (limited to 'src/plugins/irc/irc-protocol.h')
-rw-r--r--src/plugins/irc/irc-protocol.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-protocol.h b/src/plugins/irc/irc-protocol.h
index f23dc3a4a..9a4c03e99 100644
--- a/src/plugins/irc/irc-protocol.h
+++ b/src/plugins/irc/irc-protocol.h
@@ -23,6 +23,7 @@
#define IRC_PROTOCOL_CALLBACK(__command) \
int \
irc_protocol_cb_##__command (struct t_irc_server *server, \
+ time_t date, \
const char *nick, \
const char *address, \
const char *host, \
@@ -33,6 +34,7 @@
char **argv_eol)
#define IRC_PROTOCOL_MIN_ARGS(__min_args) \
+ (void) date; \
(void) nick; \
(void) address; \
(void) host; \
@@ -65,8 +67,9 @@
struct t_irc_server;
typedef int (t_irc_recv_func)(struct t_irc_server *server,
- const char *nick, const char *address,
- const char *host, const char *command,
+ time_t date, const char *nick,
+ const char *address, const char *host,
+ const char *command,
int ignored,
int argc, char **argv, char **argv_eol);
@@ -82,6 +85,7 @@ extern const char *irc_protocol_tags (const char *command, const char *tags,
const char *nick);
extern void irc_protocol_recv_command (struct t_irc_server *server,
const char *irc_message,
+ const char *msg_tags,
const char *msg_command,
const char *msg_channel);