http://uranther.pastebin.com/510905

The code is above. It will connect to that server but it won't join the channel. With the same code it does connect and join the channel. What am I missing? irc.neverside.com is UnrealIRCd if you're wondering.

I was wondering if the weird characters (SĘ(p) I get from the message printed from the server are a buffer overflow somewhere but I can't find where. Is that attributing to the flakiness of the connecting etc? Or is there something fundamentally wrong with my code?