diff options
| author | 2021-08-15 18:41:44 -0700 | |
|---|---|---|
| committer | 2021-08-15 18:58:13 -0700 | |
| commit | 8731b19ef771b18bad6418ebb3699b6a3550c60b (patch) | |
| tree | 9e5e29b5f9bf2b5aa7c36e7118fb4e1c5657556f /tests | |
| parent | Merge pull request #1677 from python-discord/mbaruh/jam-management (diff) | |
HelpChannels: fix incomplete init of available channel set
If the cog is reloaded while there are less than the maximum amount of
available channels, it makes some channels available until the limit is
reached. When a channel is made available, it updates the
`available_help_channels` set. The `update_available_help_channels()`
function would not update this set if it saw that the set already
contains elements. This resulted in only the channels that were just
made available being in the set; the set would not contain the channels
that were already available when the bot started.
Fix this by unconditionally populating the set, but moving it to
`init_available()` so it only happens once.
Fix BOT-Z1
Fix #1715
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions