Fixed errors when disconnecting from channels. Resolves #560.

This commit is contained in:
Griatch 2014-08-31 08:56:28 +02:00
parent 58502b42df
commit 6304e7a068
2 changed files with 3 additions and 3 deletions

View file

@ -153,8 +153,8 @@ class CmdDelCom(MuxPlayerCommand):
return
chkey = channel.key.lower()
# find all nicks linked to this channel and delete them
for nick in [nick for nick in caller.nicks.get(category="channel")
if nick.strvalue.lower() == chkey]:
for nick in [nick for nick in make_iter(caller.nicks.get(category="channel", return_obj=True))
if nick and nick.strvalue.lower() == chkey]:
nick.delete()
disconnect = channel.disconnect(player)
if disconnect: