Updated gametime module to work on-the-fly, based on patches and discussion with user Khandrish. Also made cleanups to @scripts command and some small bug fixes.

This commit is contained in:
Griatch 2014-01-04 17:14:51 +01:00
parent 48bfc7e54a
commit ea7e43c746
5 changed files with 87 additions and 141 deletions

View file

@ -65,8 +65,8 @@ class ScriptManager(TypedObjectManager):
if dbref or dbref == 0:
script = self.dbref_search(dbref)
if not script:
scripts = self.filter(db_key=key)
return scripts
script = self.filter(db_key=key)
return script
return self.all()
def delete_script(self, dbref):