this *seems* to work on our bot most of the time, and is a pretty easy fix, sets up the bot to reconnect on timeout if the setting is on in the config
change the cron function to look like this
/*
This gets called on cron
*/
function cron()
{
if (($this->irc != null) && (!$this->irc->_rawreceive()))
{
if($this->bot->settings->get("Irc","Reconnect")==True) {
$this->bot->send_gc("IRC connection lost...");
$this->irc_connect();
} else {
$this->irc_disconnect();
$this->bot->send_gc("IRC connection lost...");
}
}
}
it will report to org chat that irc has died, then report that it is reconnecting, so far seems to work well