mirror of
https://github.com/evennia/evennia.git
synced 2026-03-23 00:06:30 +01:00
Minor check for .pk in nicks
This commit is contained in:
parent
76a903119c
commit
bcf421de91
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@ class CmdDelCom(COMMAND_DEFAULT_CLASS):
|
|||
chkey = channel.key.lower()
|
||||
# find all nicks linked to this channel and delete them
|
||||
for nick in [nick for nick in make_iter(caller.nicks.get(category="channel", return_obj=True))
|
||||
if nick and nick.value[3].lower() == chkey]:
|
||||
if nick and nick.pk and nick.value[3].lower() == chkey]:
|
||||
nick.delete()
|
||||
disconnect = channel.disconnect(player)
|
||||
if disconnect:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue