Getting 8 nulls in response to login

Each IRC line/command must must end with an ASCII carriage return and linefeed (\r\n). Try fixing that and see if there is any change.