Some cleanup code fixes.

This commit is contained in:
Griatch 2014-04-20 18:11:41 +02:00
parent ec54de4797
commit 792b3c9282
6 changed files with 10 additions and 67 deletions

View file

@ -417,6 +417,9 @@ class PlayerDB(TypedObject, AbstractUser):
self.unpuppet_object(session.sessid)
session.sessionhandler.disconnect(session, reason=_("Player being deleted."))
self.scripts.stop()
_GA(self, "attributes").clear()
_GA(self, "nicks").clear()
_GA(self, "aliases").clear()
super(PlayerDB, self).delete(*args, **kwargs)
def execute_cmd(self, raw_string, sessid=None):