mirror of
https://github.com/evennia/evennia.git
synced 2026-04-07 00:45:22 +02:00
Fixes, cleanups and bugfixes in various systems.
This commit is contained in:
parent
1565ac3a72
commit
8770a263ac
7 changed files with 33 additions and 39 deletions
|
|
@ -145,7 +145,7 @@ class ObjectManager(TypedObjectManager):
|
|||
estring = "__iexact"
|
||||
else:
|
||||
estring = "__istartswith"
|
||||
matches = eval("self.filter(db_key%s=ostring%s)" % (estring, lstring_key))
|
||||
matches = eval("self.filter(db_key%s=ostring%s)" % (estring, lstring_key))
|
||||
if not matches:
|
||||
alias_matches = eval("self.model.alias_set.related.model.objects.filter(db_key%s=ostring%s)" % (estring, lstring_alias))
|
||||
matches = [alias.db_obj for alias in alias_matches]
|
||||
|
|
|
|||
|
|
@ -715,7 +715,7 @@ class ObjectDB(TypedObject):
|
|||
#emit_to_obj.msg(errtxt % "at_after_move()")
|
||||
#logger.log_trace()
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
#
|
||||
# Object Swap, Delete and Cleanup methods
|
||||
|
|
|
|||
|
|
@ -464,6 +464,7 @@ class Exit(Object):
|
|||
cmd.key = exidbobj.db_key.strip().lower()
|
||||
cmd.obj = exidbobj
|
||||
cmd.aliases = exidbobj.aliases
|
||||
cmd.locks = str(exidbobj.locks)
|
||||
cmd.destination = exidbobj.db_destination
|
||||
# create a cmdset
|
||||
exit_cmdset = cmdset.CmdSet(None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue