summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-ctcp.h
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-10-09 13:58:42 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-10-15 18:40:01 +0200
commit3898449dc24d10e29ef086e1d7474fd2eb1f5c9e (patch)
tree57f3a1effba82bdadecc927a32f872f89c05fe8d /src/plugins/irc/irc-ctcp.h
parentaed5c543ec00107f22ee8e29774f595b547563c2 (diff)
downloadweechat-3898449dc24d10e29ef086e1d7474fd2eb1f5c9e.zip
irc: add structure with context sent as unique parameter to IRC protocol callbacks (issue #989)
Diffstat (limited to 'src/plugins/irc/irc-ctcp.h')
-rw-r--r--src/plugins/irc/irc-ctcp.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/plugins/irc/irc-ctcp.h b/src/plugins/irc/irc-ctcp.h
index 2a7eb24f2..9cccbcfdf 100644
--- a/src/plugins/irc/irc-ctcp.h
+++ b/src/plugins/irc/irc-ctcp.h
@@ -24,6 +24,7 @@
struct t_irc_server;
struct t_irc_channel;
+struct t_irc_protocol_ctxt;
struct t_irc_ctcp_reply
{
@@ -37,21 +38,14 @@ extern char *irc_ctcp_convert_legacy_format (const char *format);
extern const char *irc_ctcp_get_default_reply (const char *ctcp);
extern const char *irc_ctcp_get_reply (struct t_irc_server *server,
const char *ctcp);
-extern void irc_ctcp_display_reply_from_nick (struct t_irc_server *server,
- time_t date,
- struct t_hashtable *tags,
- const char *command,
- const char *nick,
- const char *address,
+extern void irc_ctcp_display_reply_from_nick (struct t_irc_protocol_ctxt *ctxt,
const char *arguments);
extern char *irc_ctcp_eval_reply (struct t_irc_server *server,
const char *format);
-extern void irc_ctcp_recv (struct t_irc_server *server, time_t date,
- struct t_hashtable *tags, const char *command,
- struct t_irc_channel *channel, const char *target,
- const char *address, const char *nick,
- const char *remote_nick, const char *arguments,
- const char *message);
+extern void irc_ctcp_recv (struct t_irc_protocol_ctxt *ctxt,
+ struct t_irc_channel *channel,
+ const char *remote_nick,
+ const char *arguments);
extern void irc_ctcp_send (struct t_irc_server *server,
const char *target, const char *type,
const char *args);