!seen should get seen-info for target user, not current user

This commit is contained in:
jesopo 2019-11-04 15:33:57 +00:00
parent 983c7151ae
commit 28d3da85b4

View file

@ -33,7 +33,7 @@ class Module(ModuleManager.BaseModule):
seen_info = None
if event["is_channel"]:
seen_info = event["target"].get_user_setting(
event["user"].get_id(), "seen-info", None)
user.get_id(), "seen-info", None)
if seen_info:
seen_info = " (%s%s)" % (seen_info["action"],
utils.consts.RESET)