Fixes a bug in scriptmanager. Resolves Issue 259.

This commit is contained in:
Griatch 2012-09-25 07:42:52 +02:00
parent d535d77811
commit 7d4bf6c8d2
2 changed files with 5 additions and 4 deletions

View file

@ -45,9 +45,9 @@ class ScriptManager(TypedObjectManager):
dbref = self.dbref(key) dbref = self.dbref(key)
if dbref: if dbref:
script = self.filter(db_obj=obj, id=dbref) script = self.filter(db_obj=obj, id=dbref)
if not script: if script:
script = self.filter(db_obj=obj, db_key=key) return script
return script return self.filter(db_obj=obj, db_key=key)
return self.filter(db_obj=obj) return self.filter(db_obj=obj)
@returns_typeclass_list @returns_typeclass_list

View file

@ -193,8 +193,9 @@ def c_moves(client):
## "socializing heavy builder" definition ## "socializing heavy builder" definition
ACTIONS = (c_login, ACTIONS = (c_login,
c_logout, c_logout,
(0.3, c_socialize), (0.1, c_socialize),
(0.1, c_looks), (0.1, c_looks),
(0.1, c_help), (0.1, c_help),
(0.2, c_creates_obj),
(0.2, c_digs), (0.2, c_digs),
(0.3, c_moves)) (0.3, c_moves))