-
Notifications
You must be signed in to change notification settings - Fork 54
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
API for automatically splitting long messages in places where spec allows/requires it #51
Conversation
d19f95e
to
2bc579f
Compare
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.
The missing (void)
is the only serious problem here, and it's easy to address :)
One thing that crossed my mind and doesn't really fit anywhere specific in the diff is that it'd be pretty easy to keep the prefix in the same buffer we use to build items, but I don't see any great benefit beside the warm fuzzy feeling of saving a BUFSIZE.
6a4faa9
to
d34ab36
Compare
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.
I made a start on a test suite for this while reviewing it: 56890e2 —feel free to pull it into the PR if you think it's useful.
7f6f2e9
to
29f72a3
Compare
29f72a3
to
4b958a2
Compare
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.
Modulo suggestions I think this is in a pretty good place now.
I think it might be worth raising, since this will be the last good opportunity to filter-branch, the question of whether we could bikeshed the names down a bit. sendto_one_multiline_remote_extra_space
doesn't exactly roll off the tongue.
66e06fb
to
20ed37d
Compare
Allows simplifying multiline wrapping for multiple usages, like CAP LS/LIST, NAMES, and WHOIS channel listing
20ed37d
to
34f3df7
Compare
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.
🍰
This will greatly simplify and deduplicate code in various places, like CAP LS/LIST, NAMES, and WHOIS channel lists.
Fixes #16