While I'm very new to IRC, and it's therefore very likely that I'm doing something very wrong, the code above for some reason causes something to go horribly wrong. When I have it running, nothing I type shows up at all. I have no idea what I'm doing or not doing to cause that.
I'd really appreciate any advice or further development on this one, as I could really, really do with the ability to type much longer messages.