summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-nick.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-10-09 16:53:06 +0200
committerSebastien Helleu <flashcode@flashtux.org>2010-10-09 16:53:06 +0200
commitb114d886872f1ec7fb9cf106896b9622c0e88d1c (patch)
treef5061cdedb2d64ab956dc2ee73185773e6950b77 /src/plugins/irc/irc-nick.c
parent6e89c47bf1237c9b94125663b1373212105659d1 (diff)
downloadweechat-b114d886872f1ec7fb9cf106896b9622c0e88d1c.zip
Move some IRC options from network section to server section (task #10664, task #10668)
Options moved: connection_timeout, anti_flood_prio_high, anti_flood_prio_low, away_check, away_check_max_nicks, default_msg_part, default_msg_quit.
Diffstat (limited to 'src/plugins/irc/irc-nick.c')
-rw-r--r--src/plugins/irc/irc-nick.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/irc/irc-nick.c b/src/plugins/irc/irc-nick.c
index c2540623c..7666a4ff9 100644
--- a/src/plugins/irc/irc-nick.c
+++ b/src/plugins/irc/irc-nick.c
@@ -643,9 +643,9 @@ void
irc_nick_set_away (struct t_irc_server *server, struct t_irc_channel *channel,
struct t_irc_nick *nick, int is_away)
{
- if ((weechat_config_integer (irc_config_network_away_check) > 0)
- && ((weechat_config_integer (irc_config_network_away_check_max_nicks) == 0) ||
- (channel->nicks_count <= weechat_config_integer (irc_config_network_away_check_max_nicks))))
+ if ((IRC_SERVER_OPTION_INTEGER(server, IRC_SERVER_OPTION_AWAY_CHECK) > 0)
+ && ((IRC_SERVER_OPTION_INTEGER(server, IRC_SERVER_OPTION_AWAY_CHECK_MAX_NICKS) == 0)
+ || (channel->nicks_count <= IRC_SERVER_OPTION_INTEGER(server, IRC_SERVER_OPTION_AWAY_CHECK_MAX_NICKS))))
{
if (((is_away) && (!(nick->flags & IRC_NICK_AWAY))) ||
((!is_away) && (nick->flags & IRC_NICK_AWAY)))