1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 06:46:38 +02:00

Fixed bug when sending automatically who command during server split

This commit is contained in:
Sebastien Helleu
2005-01-27 13:37:55 +00:00
parent 4d3e76eb3e
commit 4fa9edeb56
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -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);
}
}
+3 -3
View File
@@ -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)
+1 -1
View File
@@ -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);
}
}
+3 -3
View File
@@ -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)