IRC connect() fixes