-
-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of creating an instance of `ModeParser` at each MODE event, the bot has a `modeparser` attribute with appropriate default values for its chanmodes, privileges, and param types. For that to work, when the bot received new ISUPPORT parameters, it updates the chanmodes and privileges of the mode parser if necessary. This required to adapt the list of default modes, as `a` and `q` are more commonly used as privilege rather than modes. Tests have been updated to manually update the modeparser. This may require new methods on the test IRC server to streamline an ISUPPORT configuration, because right now it's a bit too manual.
- Loading branch information
Showing
5 changed files
with
39 additions
and
19 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
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