fix undefined nick on pylink when / is in nickname#56
fix undefined nick on pylink when / is in nickname#56xnite wants to merge 2 commits intoThrone3d:masterfrom
Conversation
|
Not sure why build broke, only added |
|
I'm confused – you put it in the strict parsing section, which is supposed to conform to the IRC spec, and does not permit forward slashes in nicknames. Could you move it to the unstrict parsing section, i.e. the regex two lines below, which is for nonstandard extensions? The build broke due to linting, not due to a code error. It thinks the forward slash doesn't need to be escaped. Checking this briefly in Chrome's development console, to see how JavaScript parses the regex, it looks like the forward slash doesn't, in fact, need to be escaped where it is. This seems to be because the slash is enclosed inside the character class – that is, it's in a I'd appreciate if you could fix this as detailed above, and also add a test to ensure this section of code parses the forward slash. I'm slightly irked, separately, that so many IRC systems add additional (and, as far as I can tell, non-standard) characters to nicknames, but that's not your fault. (I can understand it in the case of extending it with Unicode support, but I would not expect more basic ASCII characters like slashes to be permitted.) In case anybody's looking for documentation that PyLink does actually do this: https://github.com/GLolol/PyLink/blob/c35c8cd4aa481cbb479c42c92f241b9bedf8e530/docs/faq.md#my-ircd-squits-the-relay-server-with-errors-like-bad-nickname-introduced Edit: Could you also capitalize the start of your commit message? i.e. "Fix undefined…" |
|
Merged here: 0780dab |
Pylink uses /'s in nicknames causing undefined nicknames. This will fix that behavior.