|
@@ -1011,7 +1011,7 @@ static void autolink_cycle_hub(char *start)
|
|
|
if (dcc[i].type) {
|
|
if (dcc[i].type) {
|
|
|
if (dcc[i].type == &DCC_BOT_NEW)
|
|
if (dcc[i].type == &DCC_BOT_NEW)
|
|
|
return;
|
|
return;
|
|
|
- if (dcc[i].type == &DCC_FORK_BOT)
|
|
|
|
|
|
|
+ if (dcc[i].type == &DCC_FORK_BOT || dcc[i].type == &DCC_BOT_CONNWAIT)
|
|
|
return;
|
|
return;
|
|
|
if (dcc[i].type == &DCC_BOT) {
|
|
if (dcc[i].type == &DCC_BOT) {
|
|
|
if (dcc[i].status & (STAT_OFFEREDU | STAT_GETTINGU | STAT_SENDINGU))
|
|
if (dcc[i].status & (STAT_OFFEREDU | STAT_GETTINGU | STAT_SENDINGU))
|
|
@@ -1137,7 +1137,8 @@ static void autolink_cycle_leaf(char *start)
|
|
|
|
|
|
|
|
for (int i = 0; i < dcc_total; i++) {
|
|
for (int i = 0; i < dcc_total; i++) {
|
|
|
if (dcc[i].type) {
|
|
if (dcc[i].type) {
|
|
|
- if ((dcc[i].type == &DCC_BOT_NEW) || (dcc[i].type == &DCC_FORK_BOT))
|
|
|
|
|
|
|
+ if (dcc[i].type == &DCC_BOT_NEW || dcc[i].type == &DCC_FORK_BOT ||
|
|
|
|
|
+ dcc[i].type == &DCC_BOT_CONNWAIT)
|
|
|
return;
|
|
return;
|
|
|
if (dcc[i].hub && dcc[i].type == &DCC_BOT) {
|
|
if (dcc[i].hub && dcc[i].type == &DCC_BOT) {
|
|
|
strlcpy(curhub, dcc[i].nick, sizeof(curhub));
|
|
strlcpy(curhub, dcc[i].nick, sizeof(curhub));
|
|
@@ -1210,7 +1211,8 @@ void autolink_cycle()
|
|
|
// Make sure not already trying for the localhub
|
|
// Make sure not already trying for the localhub
|
|
|
for (int i = 0; i < dcc_total; i++) {
|
|
for (int i = 0; i < dcc_total; i++) {
|
|
|
if (dcc[i].type) {
|
|
if (dcc[i].type) {
|
|
|
- if ((dcc[i].type == &DCC_BOT_NEW) || (dcc[i].type == &DCC_FORK_BOT))
|
|
|
|
|
|
|
+ if (dcc[i].type == &DCC_BOT_NEW || dcc[i].type == &DCC_FORK_BOT ||
|
|
|
|
|
+ dcc[i].type == &DCC_BOT_CONNWAIT)
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -1228,7 +1230,8 @@ void check_stale_dcc_users()
|
|
|
|
|
|
|
|
|
|
|
|
|
if (dcc[i].user == NULL && !(dcc[i].user = get_user_by_handle(userlist, dcc[i].nick))) { /* Removed user */
|
|
if (dcc[i].user == NULL && !(dcc[i].user = get_user_by_handle(userlist, dcc[i].nick))) { /* Removed user */
|
|
|
- if (dcc[i].type == &DCC_BOT || dcc[i].type == &DCC_FORK_BOT || dcc[i].type == &DCC_BOT_NEW)
|
|
|
|
|
|
|
+ if (dcc[i].type == &DCC_BOT || dcc[i].type == &DCC_FORK_BOT ||
|
|
|
|
|
+ dcc[i].type == &DCC_BOT_NEW || dcc[i].type == &DCC_BOT_CONNWAIT)
|
|
|
botunlink(i, dcc[i].nick, "No longer a valid bot.");
|
|
botunlink(i, dcc[i].nick, "No longer a valid bot.");
|
|
|
else if (dcc[i].type == &DCC_CHAT) {
|
|
else if (dcc[i].type == &DCC_CHAT) {
|
|
|
if (!backgrd && term_z && !strcmp(dcc[i].nick, "HQ"))
|
|
if (!backgrd && term_z && !strcmp(dcc[i].nick, "HQ"))
|