fixed a left over reference to event["channel"] that is now broken in to.py.
This commit is contained in:
parent
dc24b6b680
commit
e7dc2d566c
1 changed files with 2 additions and 2 deletions
|
@ -19,8 +19,8 @@ class Module(object):
|
||||||
|
|
||||||
def to(self, event):
|
def to(self, event):
|
||||||
setting = "to-%s" % event["args_split"][0]
|
setting = "to-%s" % event["args_split"][0]
|
||||||
messages = event["channel"].get_setting(setting, [])
|
messages = event["target"].get_setting(setting, [])
|
||||||
messages.append([event["user"].nickname,
|
messages.append([event["user"].nickname,
|
||||||
" ".join(event["args_split"][1:])])
|
" ".join(event["args_split"][1:])])
|
||||||
event["channel"].set_setting(setting, messages)
|
event["target"].set_setting(setting, messages)
|
||||||
event["stdout"].write("Message saved")
|
event["stdout"].write("Message saved")
|
||||||
|
|
Loading…
Reference in a new issue