Merge pull request #3426 from InspectorCaracal/patch-11

Fix boot/ban function on channel command
This commit is contained in:
Griatch 2024-02-24 09:59:37 +01:00 committed by GitHub
commit fb319e68da
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()