diff options
Diffstat (limited to 'src/plugins/irc')
-rw-r--r-- | src/plugins/irc/irc-channel.c | 11 | ||||
-rw-r--r-- | src/plugins/irc/irc-command.c | 12 | ||||
-rw-r--r-- | src/plugins/irc/irc-ctcp.c | 60 | ||||
-rw-r--r-- | src/plugins/irc/irc-ignore.c | 8 | ||||
-rw-r--r-- | src/plugins/irc/irc-notify.c | 10 | ||||
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 10 | ||||
-rw-r--r-- | src/plugins/irc/irc-redirect.c | 2 | ||||
-rw-r--r-- | src/plugins/irc/irc-server.c | 29 |
8 files changed, 73 insertions, 69 deletions
diff --git a/src/plugins/irc/irc-channel.c b/src/plugins/irc/irc-channel.c index 5ed8287e0..2076acf0a 100644 --- a/src/plugins/irc/irc-channel.c +++ b/src/plugins/irc/irc-channel.c @@ -236,8 +236,9 @@ irc_channel_new (struct t_irc_server *server, int channel_type, weechat_buffer_set (new_buffer, "localvar_set_channel", channel_name); if (server->is_away && server->away_message) weechat_buffer_set (new_buffer, "localvar_set_away", server->away_message); - weechat_hook_signal_send ("logger_backlog", - WEECHAT_HOOK_SIGNAL_POINTER, new_buffer); + (void) weechat_hook_signal_send ("logger_backlog", + WEECHAT_HOOK_SIGNAL_POINTER, + new_buffer); if (weechat_config_boolean (irc_config_network_send_unknown_commands)) weechat_buffer_set (new_buffer, "input_get_unknown_commands", "1"); if (channel_type == IRC_CHANNEL_TYPE_CHANNEL) @@ -350,9 +351,9 @@ irc_channel_new (struct t_irc_server *server, int channel_type, free (channel_name_lower); } - weechat_hook_signal_send ((channel_type == IRC_CHANNEL_TYPE_CHANNEL) ? - "irc_channel_opened" : "irc_pv_opened", - WEECHAT_HOOK_SIGNAL_POINTER, new_buffer); + (void) weechat_hook_signal_send ((channel_type == IRC_CHANNEL_TYPE_CHANNEL) ? + "irc_channel_opened" : "irc_pv_opened", + WEECHAT_HOOK_SIGNAL_POINTER, new_buffer); /* all is OK, return address of new channel */ return new_channel; diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index ae6dbedfa..35c3c554c 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -1434,9 +1434,9 @@ irc_command_dcc (void *data, struct t_gui_buffer *buffer, int argc, weechat_infolist_new_var_string (item, "filename", argv_eol[3]); weechat_infolist_new_var_string (item, "local_address", str_address); weechat_infolist_new_var_integer (item, "socket", ptr_server->sock); - weechat_hook_signal_send ("xfer_add", - WEECHAT_HOOK_SIGNAL_POINTER, - infolist); + (void) weechat_hook_signal_send ("xfer_add", + WEECHAT_HOOK_SIGNAL_POINTER, + infolist); } weechat_infolist_free (infolist); } @@ -1463,9 +1463,9 @@ irc_command_dcc (void *data, struct t_gui_buffer *buffer, int argc, "irc.%s.%s", ptr_server->name, argv[2]); weechat_infolist_new_var_string (item, "charset_modifier", charset_modifier); weechat_infolist_new_var_string (item, "local_address", str_address); - weechat_hook_signal_send ("xfer_add", - WEECHAT_HOOK_SIGNAL_POINTER, - infolist); + (void) weechat_hook_signal_send ("xfer_add", + WEECHAT_HOOK_SIGNAL_POINTER, + infolist); } weechat_infolist_free (infolist); } diff --git a/src/plugins/irc/irc-ctcp.c b/src/plugins/irc/irc-ctcp.c index f674db0b2..4c75a024a 100644 --- a/src/plugins/irc/irc-ctcp.c +++ b/src/plugins/irc/irc-ctcp.c @@ -629,16 +629,16 @@ irc_ctcp_recv_dcc (struct t_irc_server *server, const char *nick, IRC_SERVER_OPTION_STRING(server, IRC_SERVER_OPTION_PROXY)); weechat_infolist_new_var_string (item, "remote_address", pos_addr); weechat_infolist_new_var_integer (item, "port", atoi (pos_port)); - weechat_hook_signal_send ("xfer_add", - WEECHAT_HOOK_SIGNAL_POINTER, - infolist); + (void) weechat_hook_signal_send ("xfer_add", + WEECHAT_HOOK_SIGNAL_POINTER, + infolist); } weechat_infolist_free (infolist); } - weechat_hook_signal_send ("irc_dcc", - WEECHAT_HOOK_SIGNAL_STRING, - message); + (void) weechat_hook_signal_send ("irc_dcc", + WEECHAT_HOOK_SIGNAL_STRING, + message); if (filename) free (filename); @@ -726,16 +726,16 @@ irc_ctcp_recv_dcc (struct t_irc_server *server, const char *nick, (filename) ? filename : pos_file); weechat_infolist_new_var_integer (item, "port", atoi (pos_port)); weechat_infolist_new_var_string (item, "start_resume", pos_start_resume); - weechat_hook_signal_send ("xfer_accept_resume", - WEECHAT_HOOK_SIGNAL_POINTER, - infolist); + (void) weechat_hook_signal_send ("xfer_accept_resume", + WEECHAT_HOOK_SIGNAL_POINTER, + infolist); } weechat_infolist_free (infolist); } - weechat_hook_signal_send ("irc_dcc", - WEECHAT_HOOK_SIGNAL_STRING, - message); + (void) weechat_hook_signal_send ("irc_dcc", + WEECHAT_HOOK_SIGNAL_STRING, + message); if (filename) free (filename); @@ -823,16 +823,16 @@ irc_ctcp_recv_dcc (struct t_irc_server *server, const char *nick, (filename) ? filename : pos_file); weechat_infolist_new_var_integer (item, "port", atoi (pos_port)); weechat_infolist_new_var_string (item, "start_resume", pos_start_resume); - weechat_hook_signal_send ("xfer_start_resume", - WEECHAT_HOOK_SIGNAL_POINTER, - infolist); + (void) weechat_hook_signal_send ("xfer_start_resume", + WEECHAT_HOOK_SIGNAL_POINTER, + infolist); } weechat_infolist_free (infolist); } - weechat_hook_signal_send ("irc_dcc", - WEECHAT_HOOK_SIGNAL_STRING, - message); + (void) weechat_hook_signal_send ("irc_dcc", + WEECHAT_HOOK_SIGNAL_STRING, + message); if (filename) free (filename); @@ -935,16 +935,16 @@ irc_ctcp_recv_dcc (struct t_irc_server *server, const char *nick, IRC_SERVER_OPTION_STRING(server, IRC_SERVER_OPTION_PROXY)); weechat_infolist_new_var_string (item, "remote_address", pos_addr); weechat_infolist_new_var_integer (item, "port", atoi (pos_port)); - weechat_hook_signal_send ("xfer_add", - WEECHAT_HOOK_SIGNAL_POINTER, - infolist); + (void) weechat_hook_signal_send ("xfer_add", + WEECHAT_HOOK_SIGNAL_POINTER, + infolist); } weechat_infolist_free (infolist); } - weechat_hook_signal_send ("irc_dcc", - WEECHAT_HOOK_SIGNAL_STRING, - message); + (void) weechat_hook_signal_send ("irc_dcc", + WEECHAT_HOOK_SIGNAL_STRING, + message); free (dcc_args); } @@ -1053,9 +1053,9 @@ irc_ctcp_recv (struct t_irc_server *server, time_t date, const char *command, (pos_args) ? IRC_COLOR_RESET : "", (pos_args) ? " " : "", (pos_args) ? pos_args : ""); - weechat_hook_signal_send ("irc_pv", - WEECHAT_HOOK_SIGNAL_STRING, - message); + (void) weechat_hook_signal_send ("irc_pv", + WEECHAT_HOOK_SIGNAL_STRING, + message); } } } @@ -1126,9 +1126,9 @@ irc_ctcp_recv (struct t_irc_server *server, time_t date, const char *command, } } - weechat_hook_signal_send ("irc_ctcp", - WEECHAT_HOOK_SIGNAL_STRING, - message); + (void) weechat_hook_signal_send ("irc_ctcp", + WEECHAT_HOOK_SIGNAL_STRING, + message); if (pos_space) pos_space[0] = ' '; diff --git a/src/plugins/irc/irc-ignore.c b/src/plugins/irc/irc-ignore.c index e510ccf5f..b639d84ff 100644 --- a/src/plugins/irc/irc-ignore.c +++ b/src/plugins/irc/irc-ignore.c @@ -253,8 +253,8 @@ irc_ignore_free (struct t_irc_ignore *ignore) { struct t_irc_ignore *ptr_ignore; - weechat_hook_signal_send ("irc_ignore_removing", - WEECHAT_HOOK_SIGNAL_POINTER, ignore); + (void) weechat_hook_signal_send ("irc_ignore_removing", + WEECHAT_HOOK_SIGNAL_POINTER, ignore); /* decrement number for all ignore after this one */ for (ptr_ignore = ignore->next_ignore; ptr_ignore; @@ -288,8 +288,8 @@ irc_ignore_free (struct t_irc_ignore *ignore) free (ignore); - weechat_hook_signal_send ("irc_ignore_removed", - WEECHAT_HOOK_SIGNAL_STRING, NULL); + (void) weechat_hook_signal_send ("irc_ignore_removed", + WEECHAT_HOOK_SIGNAL_STRING, NULL); } /* diff --git a/src/plugins/irc/irc-notify.c b/src/plugins/irc/irc-notify.c index 503a34cbe..9d0ca4883 100644 --- a/src/plugins/irc/irc-notify.c +++ b/src/plugins/irc/irc-notify.c @@ -434,8 +434,8 @@ void irc_notify_free (struct t_irc_server *server, struct t_irc_notify *notify, int remove_monitor) { - weechat_hook_signal_send ("irc_notify_removing", - WEECHAT_HOOK_SIGNAL_POINTER, notify); + (void) weechat_hook_signal_send ("irc_notify_removing", + WEECHAT_HOOK_SIGNAL_POINTER, notify); /* free data */ if (notify->nick) @@ -468,8 +468,8 @@ irc_notify_free (struct t_irc_server *server, struct t_irc_notify *notify, if (server->notify_count > 0) server->notify_count--; - weechat_hook_signal_send ("irc_notify_removed", - WEECHAT_HOOK_SIGNAL_STRING, NULL); + (void) weechat_hook_signal_send ("irc_notify_removed", + WEECHAT_HOOK_SIGNAL_STRING, NULL); } /* @@ -650,7 +650,7 @@ irc_notify_send_signal (struct t_irc_notify *notify, (away_message && away_message[0]) ? away_message : ""); } - weechat_hook_signal_send (signal, WEECHAT_HOOK_SIGNAL_STRING, data); + (void) weechat_hook_signal_send (signal, WEECHAT_HOOK_SIGNAL_STRING, data); if (data) free (data); diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 0603b9dbf..bafd26c86 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -1764,9 +1764,9 @@ IRC_PROTOCOL_CALLBACK(privmsg) if (ptr_channel->has_quit_server) ptr_channel->has_quit_server = 0; - weechat_hook_signal_send ("irc_pv", - WEECHAT_HOOK_SIGNAL_STRING, - argv_eol[0]); + (void) weechat_hook_signal_send ("irc_pv", + WEECHAT_HOOK_SIGNAL_STRING, + argv_eol[0]); } return WEECHAT_RC_OK; @@ -2183,8 +2183,8 @@ IRC_PROTOCOL_CALLBACK(001) } /* send signal "irc_server_connected" with server name */ - weechat_hook_signal_send ("irc_server_connected", - WEECHAT_HOOK_SIGNAL_STRING, server->name); + (void) weechat_hook_signal_send ("irc_server_connected", + WEECHAT_HOOK_SIGNAL_STRING, server->name); /* execute command when connected */ server_command = weechat_string_eval_expression (IRC_SERVER_OPTION_STRING(server, diff --git a/src/plugins/irc/irc-redirect.c b/src/plugins/irc/irc-redirect.c index 9d3194711..2d3ab5456 100644 --- a/src/plugins/irc/irc-redirect.c +++ b/src/plugins/irc/irc-redirect.c @@ -748,7 +748,7 @@ irc_redirect_stop (struct t_irc_redirect *redirect, const char *error) snprintf (signal_name, sizeof (signal_name), "irc_redirection_%s_%s", redirect->signal, redirect->pattern); - weechat_hook_hsignal_send (signal_name, hashtable); + (void) weechat_hook_hsignal_send (signal_name, hashtable); if (hashtable) weechat_hashtable_free (hashtable); diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c index 3c42400f2..c9821ae59 100644 --- a/src/plugins/irc/irc-server.c +++ b/src/plugins/irc/irc-server.c @@ -1725,16 +1725,17 @@ irc_server_send_signal (struct t_irc_server *server, const char *signal, { snprintf (full_message_tags, length, "%s;%s", tags, full_message); - weechat_hook_signal_send (str_signal, - WEECHAT_HOOK_SIGNAL_STRING, - (void *)full_message_tags); + (void) weechat_hook_signal_send (str_signal, + WEECHAT_HOOK_SIGNAL_STRING, + (void *)full_message_tags); free (full_message_tags); } } else { - weechat_hook_signal_send (str_signal, WEECHAT_HOOK_SIGNAL_STRING, - (void *)full_message); + (void) weechat_hook_signal_send (str_signal, + WEECHAT_HOOK_SIGNAL_STRING, + (void *)full_message); } free (str_signal); } @@ -3502,8 +3503,9 @@ irc_server_create_buffer (struct t_irc_server *server) weechat_buffer_set (server->buffer, "localvar_set_charset_modifier", charset_modifier); - weechat_hook_signal_send ("logger_backlog", - WEECHAT_HOOK_SIGNAL_POINTER, server->buffer); + (void) weechat_hook_signal_send ("logger_backlog", + WEECHAT_HOOK_SIGNAL_POINTER, + server->buffer); if (weechat_config_boolean (irc_config_network_send_unknown_commands)) weechat_buffer_set (server->buffer, "input_get_unknown_commands", "1"); @@ -3531,8 +3533,9 @@ irc_server_create_buffer (struct t_irc_server *server) weechat_buffer_merge (server->buffer, ptr_buffer_for_merge); } - weechat_hook_signal_send ("irc_server_opened", - WEECHAT_HOOK_SIGNAL_POINTER, server->buffer); + (void) weechat_hook_signal_send ("irc_server_opened", + WEECHAT_HOOK_SIGNAL_POINTER, + server->buffer); return server->buffer; } @@ -4162,8 +4165,8 @@ irc_server_connect (struct t_irc_server *server) #endif /* send signal "irc_server_connecting" with server name */ - weechat_hook_signal_send ("irc_server_connecting", - WEECHAT_HOOK_SIGNAL_STRING, server->name); + (void) weechat_hook_signal_send ("irc_server_connecting", + WEECHAT_HOOK_SIGNAL_STRING, server->name); return 1; } @@ -4299,8 +4302,8 @@ irc_server_disconnect (struct t_irc_server *server, int switch_address, server->disconnected = 1; /* send signal "irc_server_disconnected" with server name */ - weechat_hook_signal_send ("irc_server_disconnected", - WEECHAT_HOOK_SIGNAL_STRING, server->name); + (void) weechat_hook_signal_send ("irc_server_disconnected", + WEECHAT_HOOK_SIGNAL_STRING, server->name); } /* |