fixed a left over reference to event["channel"] that is now broken in to.py.

This commit is contained in:
jesopo 2016-03-30 12:50:07 +01:00
parent dc24b6b680
commit e7dc2d566c
No known key found for this signature in database
GPG key ID: 0BBDEB2AEFCFFCB3

View file

@ -19,8 +19,8 @@ class Module(object):
def to(self, event):
setting = "to-%s" % event["args_split"][0]
messages = event["channel"].get_setting(setting, [])
messages = event["target"].get_setting(setting, [])
messages.append([event["user"].nickname,
" ".join(event["args_split"][1:])])
event["channel"].set_setting(setting, messages)
event["target"].set_setting(setting, messages)
event["stdout"].write("Message saved")