diff options
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/irc-channel.c | 2 | ||||
-rw-r--r-- | src/irc/irc-recv.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/irc/irc-channel.c b/src/irc/irc-channel.c index 9e948b97a..5e1339826 100644 --- a/src/irc/irc-channel.c +++ b/src/irc/irc-channel.c @@ -164,7 +164,7 @@ channel_check_away (t_irc_server *server, t_irc_channel *channel) { if (channel->type == CHAT_CHANNEL) { - channel->checking_away = 1; + channel->checking_away++; server_sendf (server, "WHO %s\r\n", channel->name); } } diff --git a/src/irc/irc-recv.c b/src/irc/irc-recv.c index a482c3f05..7f226e3fe 100644 --- a/src/irc/irc-recv.c +++ b/src/irc/irc-recv.c @@ -2055,9 +2055,9 @@ irc_cmd_recv_315 (t_irc_server *server, char *host, char *arguments) pos[0] = '\0'; pos++; ptr_channel = channel_search (server, arguments); - if (ptr_channel && (ptr_channel->checking_away)) + if (ptr_channel && (ptr_channel->checking_away > 0)) { - ptr_channel->checking_away = 0; + ptr_channel->checking_away--; return 0; } gui_printf_color (server->buffer, COLOR_WIN_CHAT_CHANNEL, "%s", arguments); @@ -2760,7 +2760,7 @@ irc_cmd_recv_352 (t_irc_server *server, char *host, char *arguments) pos_realname++; ptr_channel = channel_search (server, pos_channel); - if (ptr_channel && (ptr_channel->checking_away)) + if (ptr_channel && (ptr_channel->checking_away > 0)) { ptr_nick = nick_search (ptr_channel, pos_nick); if (ptr_nick) |