diff options
| author | 2020-02-29 11:53:28 -0800 | |
|---|---|---|
| committer | 2020-03-22 15:54:43 -0700 | |
| commit | 4a87de480c2dc7b23df8ab1d17e39c8c09bcef9f (patch) | |
| tree | 9704eadc27392903e5474b823bbae756dc9ae7fc /tests | |
| parent | HelpChannels: initialise available channels after moving idle ones (diff) | |
HelpChannels: prevent cog load if config is invalid
They must be greater than 0 because the cog obviously couldn't do
anything without any channels to work with. It must be greater than
max_available because it'd otherwise be impossible to maintain that many
channels in the Available category.
* Create a new function to validate the value
* Move validation against MAX_CHANNELS_PER_CATEGORY into the function
rather than just logging a warning
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions