Fix issue #77, dealing with clearing objects out of a room being @dest'd.
This commit is contained in:
parent
4125c93c8b
commit
239af1593d
2 changed files with 8 additions and 17 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue