Made ircbot work correctly with latest code, lead to a fixing of a bug in script creation.

This commit is contained in:
Griatch 2015-03-07 13:22:11 +01:00
parent f901da0474
commit fc56b12f52
4 changed files with 11 additions and 6 deletions

View file

@ -58,7 +58,7 @@ class ScriptHandler(object):
definition)
autostart - start the script upon adding it
"""
if self.obj.__class__.__name__ == "PlayerDB":
if self.obj.__dbclass__.__name__ == "PlayerDB":
# we add to a Player, not an Object
script = create.create_script(scriptclass, key=key, player=self.obj,
autostart=autostart)