Set the client as authenticated after connected (if nick is registered)
Don't output line if the type is CONNECT or REGISTER, as this may expose sensitive information