Also tweaked scripts- and player managers to handle id=0.
This commit is contained in:
parent
33c15e99d2
commit
110207fd7f
2 changed files with 2 additions and 2 deletions
|
|
@ -162,7 +162,7 @@ class PlayerManager(TypedObjectManager):
|
||||||
"""
|
"""
|
||||||
ostring = ostring.lstrip("*")
|
ostring = ostring.lstrip("*")
|
||||||
dbref = self.dbref(ostring)
|
dbref = self.dbref(ostring)
|
||||||
if dbref:
|
if dbref or dbref == 0:
|
||||||
matches = self.filter(id=dbref)
|
matches = self.filter(id=dbref)
|
||||||
if matches:
|
if matches:
|
||||||
return matches
|
return matches
|
||||||
|
|
|
||||||
|
|
@ -191,7 +191,7 @@ class ScriptManager(TypedObjectManager):
|
||||||
ostring = ostring.strip()
|
ostring = ostring.strip()
|
||||||
|
|
||||||
dbref = self.dbref(ostring)
|
dbref = self.dbref(ostring)
|
||||||
if dbref:
|
if dbref or dbref == 0:
|
||||||
# this is a dbref, try to find the script directly
|
# this is a dbref, try to find the script directly
|
||||||
dbref_match = self.dbref_search(dbref)
|
dbref_match = self.dbref_search(dbref)
|
||||||
if dbref_match:
|
if dbref_match:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue