forked from irssi/irssi
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly strip : from <trailing> parameters in MODE commands
This is to fix irssi#601. The prior function used to extract the mode string assumed that ":" could occur only in a particular spot. This lead to the possibility that ":" could be treated as part of things like nicknames or mode arguments, where it should have been stripped as part of protocol escaping. We now recognize ":" as beginning a <trailing> parameter in any position. There are still cases where this parsing is arguably not RFC correct, but Irssi's mode parsing expects the mode arguments as a single string already, so collapsing parameters in this way is probably okay. As part of this change, I add a program to test both the new function and the old. In order to use it, you need to run autogen.sh again, and then run "make check".
- Loading branch information
Showing
5 changed files
with
554 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.