Skip to content
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

A message must have a non-empty command #14

Closed
wants to merge 1 commit into from

Conversation

welwood08
Copy link

I'm not sure how strict this parser is intended to be, but I have a light wrapper around it to make a transform stream and was writing tests when I encountered a few unexpected failures.

According to the pseudo BNF in RFC1459, the command part of a message is required and must be at least 1 character (1+ letters or exactly 3 digits, but that's a separate issue if it's wanted). This change makes the parser treat empty string and things like ": " as malformed in the same way that it already treats ":".

Previously, empty string and ": " were treated as valid messages.
@osslate osslate mentioned this pull request Feb 21, 2015
5 tasks
@osslate osslate closed this in 55d7100 Feb 21, 2015
@osslate
Copy link
Owner

osslate commented Feb 21, 2015

Merged this manually, sorry it took so long. Starting with 3.0, irc-message provides a Transform stream out of the box (with options to parse IRCv3 message tags, prefixes, etc) too :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants