Fixed a lacking implementation in the Msg API. You need to re-sync the database since Msg now relies on three fields that where commented out before.

This commit is contained in:
Griatch 2010-09-04 12:18:00 +00:00
parent 72bb8ac667
commit d90c2909a2
6 changed files with 33 additions and 27 deletions

View file

@ -140,9 +140,9 @@ class SessionProtocol(StatefulTelnetProtocol):
character = ObjectDB.objects.get_object_with_user(self.uid)
if not character:
string = "No character match for session uid: %s" % self.uid
logger.log_errmsg(string)
return None
return character[0]
logger.log_errmsg(string)
else:
return character
return None
def execute_cmd(self, raw_string):