diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-10-31 18:10:51 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-10-31 18:10:51 +0100 |
commit | fce371e22a14ed55f246e1fe5413c5058b7fcae6 (patch) | |
tree | e7b82b693a4d046a42e008863d07c5fc2245f5f6 /src/plugins/irc | |
parent | e442182a9683a713d3d97b452b4361ee0cd1d9a5 (diff) | |
download | weechat-fce371e22a14ed55f246e1fe5413c5058b7fcae6.zip |
Remove unused variables
Diffstat (limited to 'src/plugins/irc')
-rw-r--r-- | src/plugins/irc/irc-command.c | 9 | ||||
-rw-r--r-- | src/plugins/irc/irc-config.c | 4 | ||||
-rw-r--r-- | src/plugins/irc/irc-ignore.c | 3 |
3 files changed, 1 insertions, 15 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index e2fe5baa1..fa021f3b8 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -2314,7 +2314,6 @@ irc_command_msg (void *data, struct t_gui_buffer *buffer, int argc, char **targets; int num_targets, i, arg_target, arg_text; char *msg_pwd_hidden; - struct t_irc_nick *ptr_nick; char *string; IRC_BUFFER_GET_SERVER_CHANNEL(buffer); @@ -2361,10 +2360,6 @@ irc_command_msg (void *data, struct t_gui_buffer *buffer, int argc, IRC_PLUGIN_NAME, "msg *"); return WEECHAT_RC_OK; } - if (ptr_channel->type == IRC_CHANNEL_TYPE_CHANNEL) - ptr_nick = irc_nick_search (ptr_channel, ptr_server->nick); - else - ptr_nick = NULL; string = irc_color_decode (argv_eol[arg_text], weechat_config_boolean (irc_config_network_colors_receive)); irc_input_user_message_display (ptr_channel->buffer, @@ -2385,10 +2380,6 @@ irc_command_msg (void *data, struct t_gui_buffer *buffer, int argc, targets[i]); if (ptr_channel) { - if (ptr_channel->type == IRC_CHANNEL_TYPE_CHANNEL) - ptr_nick = irc_nick_search (ptr_channel, ptr_server->nick); - else - ptr_nick = NULL; string = irc_color_decode (argv_eol[arg_text], weechat_config_boolean (irc_config_network_colors_receive)); irc_input_user_message_display (ptr_channel->buffer, diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c index f64048ab4..00b5f9b12 100644 --- a/src/plugins/irc/irc-config.c +++ b/src/plugins/irc/irc-config.c @@ -782,7 +782,6 @@ irc_config_msgbuffer_create_option (void *data, { struct t_config_option *ptr_option; int rc; - const char *pos_name; /* make C compiler happy */ (void) data; @@ -807,9 +806,6 @@ irc_config_msgbuffer_create_option (void *data, { if (value) { - pos_name = strchr (option_name, '.'); - pos_name = (pos_name) ? pos_name + 1 : option_name; - ptr_option = weechat_config_new_option ( config_file, section, option_name, "integer", diff --git a/src/plugins/irc/irc-ignore.c b/src/plugins/irc/irc-ignore.c index d84bdaf04..e5118362a 100644 --- a/src/plugins/irc/irc-ignore.c +++ b/src/plugins/irc/irc-ignore.c @@ -188,7 +188,7 @@ irc_ignore_check (struct t_irc_server *server, const char *channel, const char *nick, const char *host) { struct t_irc_ignore *ptr_ignore; - int server_match, channel_match, regex_match; + int server_match, channel_match; if (!server) return 0; @@ -205,7 +205,6 @@ irc_ignore_check (struct t_irc_server *server, const char *channel, { server_match = 0; channel_match = 0; - regex_match = 0; if (!server || (strcmp (ptr_ignore->server, "*") == 0)) server_match = 1; |