mirror of
https://github.com/evennia/evennia.git
synced 2026-03-24 16:56:32 +01:00
Fix for empty character sets
Filtering away characters who's type is None, to avoid tracebacks in the event of a characterless guest.
This commit is contained in:
parent
a8f9c4034e
commit
de6badd709
1 changed files with 2 additions and 2 deletions
|
|
@ -444,7 +444,7 @@ class Guest(Player):
|
|||
"""
|
||||
super(Guest, self).at_disconnect()
|
||||
characters = self.db._playable_characters
|
||||
for character in characters:
|
||||
for character in filter(None, characters):
|
||||
character.delete()
|
||||
|
||||
def at_server_shutdown(self):
|
||||
|
|
@ -453,7 +453,7 @@ class Guest(Player):
|
|||
"""
|
||||
super(Guest, self).at_server_shutdown()
|
||||
characters = self.db._playable_characters
|
||||
for character in characters:
|
||||
for character in filter(None, characters):
|
||||
character.delete()
|
||||
|
||||
def at_post_disconnect(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue