Added timeout to deal with connecting to slow and unreliable IRCservers

Not sure if I am doing this right. First time trying a pull request.

I found connecting to some IRC servers that are DOSS'ed often can be a pain. I think this should help being able to set your own timeout duration. 
Ditto here.