mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 07:32:04 +02:00
bugfixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@252 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
329fbd3ee8
commit
9747762593
3 changed files with 19 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue