make sure to get an iterable
This commit is contained in:
parent
1f4cd76e5f
commit
764eb97cc6
1 changed files with 1 additions and 1 deletions
|
|
@ -627,7 +627,7 @@ class CmdChannel(COMMAND_DEFAULT_CLASS):
|
||||||
# find all of target's nicks linked to this channel and delete them
|
# find all of target's nicks linked to this channel and delete them
|
||||||
for nick in [
|
for nick in [
|
||||||
nick
|
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
|
if nick.value[3].lower() == channel.key
|
||||||
]:
|
]:
|
||||||
nick.delete()
|
nick.delete()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue