-
-
Notifications
You must be signed in to change notification settings - Fork 93
(WIP) Arbitrary mode support, phase 1 #1872
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
base: develop
Are you sure you want to change the base?
Conversation
005b4d7 to
c6e5a76
Compare
0258744 to
acf0fcd
Compare
acf0fcd to
772f123
Compare
772f123 to
8303e27
Compare
| return result; | ||
| } | ||
|
|
||
| char *join_str_array(char **argv, int argc, char *delim) |
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.
can we have last parameter type char or is there a need for delimiters longer than 1 char?
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.
on the other hand, i can imagine things delimiters like ", ". but i think for generic misc functions exported via module API, we should make the output buffer a parameter and len, not a static array. could be useful for threaded code or for code that needs to join into a buffer longer than 512 chars.
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 think keeping it open for multi-char delimiters is more flexible and doesn't make it any more difficult to use.
Caller-provided buffer with length limitation makes sense, I'll change that.
| void splitcn(char *, char *, char, size_t); | ||
| void remove_crlf(char **); | ||
| parsed_irc_t parse_irc(char *); | ||
| char *join_str_array(char **argv, int argc, char *delim); |
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.
remove variable names?
Found by: various
Patch by: thommey
One-line summary: Understand mode info from raw 005 isupport and parse modes correctly
Additional description (if needed):
Phase 1 is parsing mode info from ISUPPORT raw 005 and using it to properly split modes (primarily for bind mode / pushmode).
It is not intended to overhaul eggdrop's mode enforcement or understanding of/reaction to modes.
The goal is to introduce proper parsing without breaking anything first.
Test cases demonstrating functionality (if applicable):
Basic parsing unit tests:
cd src/mod/irc.mod && make test(needs criterion)FULL FF-MERGE, NO SQUASHING
Commit history is clean, review individual commits instead of full diff