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

client.reply(str), where str is all white space, does not emit a PRIVMSG event with white space. #258

Open
adedomin opened this issue Jul 30, 2020 · 1 comment

Comments

@adedomin
Copy link

When attempting to write nothing but whitespace, the sendMessage prototype fails to emit a PRIVMSG for it.

I'm guessing it has to do with the lineBreak generator which I haven't fully debugged or grokked yet.

This problem didn't exist in v2.9.1.

Maybe helpful picture of debugging:
Screenshot from 2020-07-30 18-42-55

@xPaw
Copy link
Collaborator

xPaw commented Jul 31, 2020

From a quick look at the code, it could possibly be caused by this:

// possible leftovers at end of input string
if (word) {
yield [word, trailingWhitespace];
}
// trailingWhitespace can't be non-empty unless word is non-empty

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

No branches or pull requests

2 participants