From 110207fd7f8f60bb7e01921ae6fbbf3e10f0a071 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sat, 29 Sep 2012 17:12:16 +0200 Subject: [PATCH] Also tweaked scripts- and player managers to handle id=0. --- src/players/manager.py | 2 +- src/scripts/manager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: