make sure to get an iterable

This commit is contained in:
InspectorCaracal 2024-02-12 19:16:10 -07:00 committed by GitHub
parent 1f4cd76e5f
commit 764eb97cc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -627,7 +627,7 @@ class CmdChannel(COMMAND_DEFAULT_CLASS):
# find all of target's nicks linked to this channel and delete them
for nick in [
nick
for nick in target.nicks.get(category="channel") or []
for nick in target.nicks.get(category="channel", return_tuple=True) or []
if nick.value[3].lower() == channel.key
]:
nick.delete()