summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-01-27 13:37:55 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-01-27 13:37:55 +0000
commit4fa9edeb5694b7e65e63c919609e93673101c733 (patch)
treedf6c7b3c296d4579139b0dde0a396ae999250846 /src/irc
parent4d3e76eb3e1523127f8bfcc04be958fc70dbc6e9 (diff)
downloadweechat-4fa9edeb5694b7e65e63c919609e93673101c733.zip
Fixed bug when sending automatically who command during server split
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc-channel.c2
-rw-r--r--src/irc/irc-recv.c6
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)