Hive13/jIRCBot — Issue #17: Bot needs to reconnect when accidently disconnected.
Author: ryodoan
Created: 2011-10-13 19:27:13+00:00
State: open
Labels: Defect

Sometimes the bot gets into an odd state where it is disconnected from the freenode.net server, but it does not try to reconnect. There is already code in place that checks to make sure the bot is connected before it allows the bot to send messages, this code can be expanded to trigger a "Reconnect" procedure when the bot realizes it is not connected.

Caveats:
- The "Bot is not connected" option was added to prevent a large queue of messages building up, need to preserve this funcationality.
- The "Bot is not connected" detection was also added to prevent messages being sent while the bot was actively trying to connect. I will need to make sure that the "Reconnect" procedure does not get triggered while the bot is already trying to connect.