save !to commands for the target user, not the user sending the command!
This commit is contained in:
parent
0f09184e48
commit
51cf5c56d4
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue