404d/Bones-IRCBot — pull request #23 by 404d (2013-10-09 13:49:00+00:00)
Title: In some cases of ping timeout for example, the bot won't reconnect to the server.

This've actually been known for a while, but I haven't gotten around to reproducing it to be 100% sure that this is what is happening. The reason for this is that `BonesBotFactory.clientConnectionFailed` won't attempt to reconnect to the server, and rather just prints the message and keeps humming along, doing close to nothing.

This is a per-server problem, to be specific.

# Steps to reproduce
1. Boot up a bot, wait for it to connect to a server
2. When the server connection is done, turn of or unplug your network connection from your computer.
3. Wait for the bot to timeout.

Expected results should be similiar to this:
~~~
2013-10-09 14:57:37,653 - bones.bot - INFO - Lost connection ([Failure instance: Traceback (failure with no frames): : Connection to the other side was lost in a non-clean fashion.
]), reconnecting in 0 seconds.
2013-10-09 14:57:37,659 - bones.bot - INFO - Could not connect: [Failure instance: Traceback (failure with no frames): : DNS lookup failed: address 'blackbox.chatno.de' not found: [Errno 8] nodename nor servname provided, or not known.
~~~
**Note:** the connection failure message may for example say "No route to host" or anything else that may prevent the bot from connection because of a problem on another side than what happens directly on the server.