Resolved issue113, avoiding a loophole in which the protection about @reloading a timed script could be circumvented.

This commit is contained in:
Griatch 2010-10-31 08:34:38 +00:00
parent 3f703efc2d
commit 7eaf3d221c
3 changed files with 4 additions and 4 deletions

View file

@ -39,7 +39,7 @@ def reload_modules():
# these.
unsafe_modules = []
for scriptobj in ScriptDB.objects.get_all_scripts():
if scriptobj.interval and scriptobj.typeclass_path:
if (scriptobj.interval > -1) and scriptobj.typeclass_path:
unsafe_modules.append(scriptobj.typeclass_path)
unsafe_modules = list(set(unsafe_modules))