Fixed bugs in scripts starting and with multiple aliases getting a malformed tag category.

This commit is contained in:
Griatch 2013-11-28 14:11:18 +01:00
parent 24aa626a61
commit 9839e0ba1f
3 changed files with 18 additions and 13 deletions

View file

@ -154,9 +154,10 @@ class ScriptClass(TypeClass):
if obj:
# check so the scripted object is valid and initalized
try:
object.__getattribute__(obj, 'cmdset')
object.__getattribute__(obj.dbobj, 'cmdset')
except AttributeError:
# this means the object is not initialized.
logger.log_trace()
self.dbobj.is_active = False
return 0