-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix blank lines being passed to parse message #318
Conversation
} catch (err) { | ||
if (!self.conn.requestedDisconnect) { | ||
throw err; | ||
if (line.length > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably best just to check the truthyness of line
. The empty string will evaluate as false.
Looks pretty good to me. Thanks! |
You're right, updated it to just be a truth check. and thank you this module works great! |
Thank you for this fix. |
Why does this change the iconv implementation used? Can you add tests, and squash your commits into one as described in the contributing guide? |
665bda1
to
8ded60b
Compare
Sorry, continued working on the wrong branch. I've removed iconv-lite, added a test and squashed commits. |
+1 |
fix blank lines being passed to parse message
I was using this to interact with twitch irc and it kept crashing because the service occasionally sends a double line break at the end of a line, this was an easy fix but I'm not sure it's in the right place. Feel free to refuse it.