Since plugins sometimes have to check whether they are "at least halfopped" or "at least voiced", they have to check all the modes (and sometimes forget to check halfops in the latter case).
So I added shortcuts to check that.
First, a commit I made two years ago introducing this feature in a specific case (a converter for "at least halfopped"):
Then, the extension to all converters:
And finally, the addition of other shortcuts, and usage in Factoids, with the introduction of the supybot.plugins.Factoids.requireVoice configuration variable:
The configuration variable was requested by a user who wanted to restrict Factoids learning to voiced people (to prevent Factoids flood), without having to register all users.
Log in to post a comment.