1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Don't stop reconnecting to server if we get nick collided

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2408 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-02-10 10:21:46 +00:00 committed by cras
parent 3990779dc5
commit c674db5c8e
2 changed files with 7 additions and 2 deletions

View File

@ -86,12 +86,16 @@ static void event_nick_collision(IRC_SERVER_REC *server, const char *data)
settings_get_int("server_reconnect_time");
if (server->connect_time > new_connect)
server->connect_time = new_connect;
server->nick_collision = TRUE;
}
static void event_kill(IRC_SERVER_REC *server, const char *data)
{
/* don't reconnect if we were killed */
server->no_reconnect = TRUE;
if (!server->nick_collision) {
/* don't reconnect if we were killed */
server->no_reconnect = TRUE;
}
}
void irc_servers_reconnect_init(void)

View File

@ -59,6 +59,7 @@ struct _IRC_SERVER_REC {
unsigned int no_multi_who:1; /* Server doesn't understand WHO #chan1,#chan2,... */
unsigned int one_endofwho:1; /* /WHO #a,#b,.. replies only with one End of WHO message */
unsigned int disable_lag:1; /* Disable lag detection (PING command doesn't exist) */
unsigned int nick_collision:1; /* We're just now being killed because of nick collision */
int max_kicks_in_cmd; /* max. number of people to kick with one /KICK command */
int max_modes_in_cmd; /* max. number of mode changes in one /MODE command */