diff --git a/src/players/manager.py b/src/players/manager.py index 26bbb6f340..cdc22b8cf3 100644 --- a/src/players/manager.py +++ b/src/players/manager.py @@ -162,7 +162,7 @@ class PlayerManager(TypedObjectManager): """ ostring = ostring.lstrip("*") dbref = self.dbref(ostring) - if dbref: + if dbref or dbref == 0: matches = self.filter(id=dbref) if matches: return matches diff --git a/src/scripts/manager.py b/src/scripts/manager.py index 18a2e79b98..b7922b6c25 100644 --- a/src/scripts/manager.py +++ b/src/scripts/manager.py @@ -191,7 +191,7 @@ class ScriptManager(TypedObjectManager): ostring = ostring.strip() dbref = self.dbref(ostring) - if dbref: + if dbref or dbref == 0: # this is a dbref, try to find the script directly dbref_match = self.dbref_search(dbref) if dbref_match: