From 51cf5c56d4f0fc4ba0f4732d5367ef0051cd1449 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 13 Aug 2018 18:19:17 +0100 Subject: [PATCH] save !to commands for the target user, not the user sending the command! --- modules/to.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/to.py b/modules/to.py index 031d127c..2f403517 100644 --- a/modules/to.py +++ b/modules/to.py @@ -22,9 +22,9 @@ class Module(object): def to(self, event): messages = event["target"].get_user_setting( - event["user"].nickname, "to", []) + event["args_split"][0], "to", []) messages.append([event["user"].nickname, " ".join(event["args_split"][1:])]) event["target"].set_user_setting( - event["user"].nickname, "to", messages) + event["args_split"][0], "to", messages) event["stdout"].write("Message saved")