02.10.2015, 18:59
(
Last edited by Kar; 02/11/2015 at 05:29 AM.
)
I have a minor issue. My first bot disconnects after awhile for the reason 'ping timeout (121 seconds)' right. When it disconnects, the other bots stop responding. They send messages to the server but they stop handling commands.
pawn Code:
connectIRCBot(ircIndex)
{
gBotID[ircIndex] = IRC_Connect(IRC_SERVER, IRC_PORT, gBotNames[ircIndex], gBotNames[ircIndex], gBotNames[ircIndex]);
IRC_SetIntData(gBotID[ircIndex], E_IRC_CONNECT_DELAY, ircIndex + 1);
IRC_SetIntData(gBotID[ircIndex], E_IRC_CONNECT_ATTEMPTS, 5);
IRC_SetIntData(gBotID[ircIndex], E_IRC_CONNECT_TIMEOUT, 10); // bots disconnect if timed out fast x seconds
//IRC_SetIntData(gBotID[ircIndex], E_IRC_RECEIVE_TIMEOUT, 3600 * 24); // bots disconnect is nothing is sent in x seconds
IRC_SetIntData(gBotID[ircIndex], E_IRC_RESPAWN, true);
}