Made ircbot work correctly with latest code, lead to a fixing of a bug in script creation.
This commit is contained in:
parent
f901da0474
commit
fc56b12f52
4 changed files with 11 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue