git-svn-id: http://svn.irssi.org/repos/irssi/trunk@252 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-05-29 17:34:47 +00:00 committed by cras
commit 9747762593
3 changed files with 19 additions and 5 deletions

View file

@ -248,6 +248,11 @@ void botnet_connect(BOTNET_REC *botnet)
botnet_listen(botnet);
}
if (botnet->uplinks == NULL) {
/* we have no uplinks */
return;
}
/* find some bot where we can try to connect to */
now = time(NULL);
uplink = best = NULL;
@ -270,6 +275,7 @@ void botnet_connect(BOTNET_REC *botnet)
if (best == NULL) {
/* reconnect later */
botnet->reconnect = TRUE;
return;
}
/* connect to uplink */
@ -369,6 +375,8 @@ static void botnet_event(BOT_REC *bot, const char *data)
if (bot->connected)
return;
signal_stop_by_name("botnet event");
if (bot->uplink) {
botnet_connect_event_uplink(bot, data);
return;