1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 05:46:38 +02:00

New format for some IRC protocol commands

This commit is contained in:
Sebastien Helleu
2008-03-15 17:54:55 +01:00
parent fe8d679362
commit c4ae815a32
3 changed files with 440 additions and 800 deletions
+3
View File
@@ -85,6 +85,9 @@ irc_mode_channel_set (struct t_irc_server *server,
char *pos_args, *str_modes, set_flag, **argv, *pos, *ptr_arg;
int argc, current_arg;
if (!server || !channel || !modes)
return;
argc = 0;
argv = NULL;
current_arg = 0;
File diff suppressed because it is too large Load Diff
+2 -6
View File
@@ -44,19 +44,15 @@
struct t_irc_server;
typedef int (t_irc_recv_func)(struct t_irc_server *server, char *irc_message,
char *host, char *nick, char *arguments,
typedef int (t_irc_recv_func)(struct t_irc_server *server, char *comand,
int argc, char **argv, char **argv_eol,
int ignore, int highlight);
typedef int (t_irc_recv_func2)(struct t_irc_server *server, char *comand,
int argc, char **argv, char **argv_eol,
int ignore, int highlight);
struct t_irc_protocol_msg
{
char *name; /* IRC message name */
char *description; /* message description */
t_irc_recv_func *recv_function; /* function called when msg is received */
t_irc_recv_func2 *recv_function2; /* function called when msg is received */
};
extern void irc_protocol_recv_command (struct t_irc_server *server,