Fixes a few more command errors in commands without args. Create from the login screen now works without errors again.

This commit is contained in:
Greg Taylor 2009-01-15 03:48:42 +00:00
parent 59e5f60e34
commit 51a648ddab
2 changed files with 7 additions and 5 deletions

View file

@ -748,8 +748,9 @@ class Object(models.Model):
self.get_location().emit_to_contents(arrival_message, exclude=self)
if self.location.is_player():
self.location.emit_to("%s is now in your inventory." % (self.get_name()))
if force_look and self.is_player():
session = self.get_session()
if force_look and self.is_player() and session:
self.get_session().execute_cmd('look')
def dbref_match(self, oname):