Disconnected instances of rate-limiting constant #2668
Labels
Bug
Things to squish; generally used for issues
Needs Triage
Issues that need to be reviewed and categorized
I was exploring the other day (don't remember what for, exactly) and the below constant + comment caught my attention enough to leave the file open.
sopel/sopel/plugins/rules.py
Lines 77 to 78 in 6528e72
Finally coming back to it now, I seriously wonder: Shouldn't this (
plugins.rules.IGNORE_RATE_LIMIT
) andplugin.NOLIMIT
use the same value declaration, instead of relying on multiple assignments in different files to match? As in,plugin.NOLIMIT
should be an alias to this value, not a separate declaration.Clearly this isn't a priority, but I have started to think of it as a code smell of sorts.
The text was updated successfully, but these errors were encountered: