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:
@@ -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;
|
||||
|
||||
+435
-794
File diff suppressed because it is too large
Load Diff
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user