summaryrefslogtreecommitdiff
path: root/src/irc/irc.h
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-07-25 18:06:39 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-07-25 18:06:39 +0000
commit8df7ac464b288ad1f5be3a2b99b0a6112dda83bd (patch)
treee8c2323b133ee83791448b22011cf796a4b25f37 /src/irc/irc.h
parent2f6a4140d6efdfddbbbc97b6a83c0eca43075b4a (diff)
downloadweechat-8df7ac464b288ad1f5be3a2b99b0a6112dda83bd.zip
Added generic function for incoming numeric IRC commands (bug #16611)
Diffstat (limited to 'src/irc/irc.h')
-rw-r--r--src/irc/irc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/irc/irc.h b/src/irc/irc.h
index 25f826c41..f1b9ee3f9 100644
--- a/src/irc/irc.h
+++ b/src/irc/irc.h
@@ -200,6 +200,8 @@ struct t_irc_server
/* irc commands */
+typedef int (t_irc_recv_func)(t_irc_server *, char *, char *, char *);
+
typedef struct t_irc_command t_irc_command;
struct t_irc_command
@@ -218,8 +220,7 @@ struct t_irc_command
/* function called when user enters cmd */
int (*cmd_function_1arg)(t_irc_server *, t_irc_channel *, char *);
/* function called when user enters cmd */
- int (*recv_function)(t_irc_server *, char *, char *, char *);
- /* function called when cmd is received */
+ t_irc_recv_func *recv_function; /* function called when cmd is received */
};
/* irc messages */