aboutsummaryrefslogtreecommitdiff
path: root/modules/to.py
diff options
context:
space:
mode:
authorGravatar jesopo2016-03-30 12:50:07 +0100
committerGravatar jesopo2016-03-30 12:50:07 +0100
commite7dc2d566cf9369f6e057850066939530ac2eba7 (patch)
tree74ba24dc00976d06abbc88632f2c33578641d22a /modules/to.py
parentmade channel commands prefixable with the bot's nickname, not just the comman... (diff)
fixed a left over reference to event["channel"] that is now broken in to.py.
Diffstat (limited to 'modules/to.py')
-rw-r--r--modules/to.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/to.py b/modules/to.py
index 033cb0e4..66e248fc 100644
--- a/modules/to.py
+++ b/modules/to.py
@@ -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")