aboutsummaryrefslogtreecommitdiffstats
path: root/tests/base.py
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2021-08-15 18:41:44 -0700
committerGravatar MarkKoz <[email protected]>2021-08-15 18:58:13 -0700
commit8731b19ef771b18bad6418ebb3699b6a3550c60b (patch)
tree9e5e29b5f9bf2b5aa7c36e7118fb4e1c5657556f /tests/base.py
parentMerge 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/base.py')
0 files changed, 0 insertions, 0 deletions