Fix issue #77, dealing with clearing objects out of a room being @dest'd.

This commit is contained in:
Greg Taylor 2009-10-24 03:49:14 +00:00
parent 4125c93c8b
commit 239af1593d
2 changed files with 8 additions and 17 deletions

View file

@ -134,11 +134,7 @@ class SessionProtocol(StatefulTelnetProtocol):
def get_pobject(self):
"""
Returns the object associated with a session.
"""
# If the pobject is already cached, return it and skip the lookup.
if self.pobject:
return self.pobject
"""
try:
# Cache the result in the session object for quick retrieval.
result = Object.objects.get(id=self.uid)