[02:14:00] *** IRC_OnDisconnect: Bot ID 310 attempting to reconnect... [02:14:00] *** IRC_OnDisconnect: Bot ID 310 disconnected! [02:14:00] *** IRC_OnDisconnect: Bot ID 579 attempting to reconnect... [02:14:00] *** IRC_OnDisconnect: Bot ID 579 disconnected! [02:14:00] *** IRC_OnDisconnect: Bot ID 93 attempting to reconnect... [02:14:00] *** IRC_OnDisconnect: Bot ID 93 disconnected! [02:14:00] *** IRC_OnDisconnect: Bot ID 515 attempting to reconnect... [02:14:00] *** IRC_OnDisconnect: Bot ID 515 disconnected! [02:14:00] *** IRC_OnDisconnect: Bot ID 45 attempting to reconnect... [02:14:00] *** IRC_OnDisconnect: Bot ID 45 disconnected! [02:14:00] *** IRC_OnDisconnect: Bot ID 493 attempting to reconnect... [02:14:00] *** IRC_OnDisconnect: Bot ID 493 disconnected! [02:14:00] *** IRC_OnDisconnect: Bot ID 296 attempting to reconnect... |
public IRC_OnDisconnect(botid) {
printf("*** IRC_OnDisconnect: Bot ID %d disconnected!", botid);
if (botid == gBotID[0]) {
// Reset the bot ID
gBotID[0] = 0;
// Wait 20 seconds for the first bot
SetTimerEx("IRC_ConnectDelay", 50000, 0, "d", 1);}
else if (botid == gBotID[1]) {
// Reset the bot ID
gBotID[1] = 0;
// Wait 25 seconds for the second bot
SetTimerEx("IRC_ConnectDelay", 55000, 0, "d", 2);}
else if (botid == gBotID[2]) {
// Reset the bot ID
gBotID[2] = 0;
// Wait 30 seconds for the third bot
SetTimerEx("IRC_ConnectDelay", 50000, 0, "d", 3);}
printf("*** IRC_OnDisconnect: Bot ID %d attempting to reconnect...", botid);
// Remove the bot from the group
IRC_RemoveFromGroup(gGroupID, botid);
return 1;}
public IRC_OnJoinChannel(botid, channel[]) {
printf("*** IRC_OnJoinChannel: Bot ID %d joined channel %s!", botid, channel);
return 1;}
do you have maxnpc set to 1/amount of bots in your server.cfg?
|
printf("*** IRC_OnDisconnect: Bot ID %d disconnected!", botid);
printf("*** IRC_OnDisconnect: Bot ID %d attempting to reconnect...", botid);