buffer lines in private messages should be stored against the sender

This commit is contained in:
jesopo 2019-06-03 11:35:31 +01:00
parent 8b796c159f
commit ae3e2708c0

View file

@ -97,5 +97,10 @@ def message(events, event):
event["tags"], from_self) event["tags"], from_self)
else: else:
hook.call(**kwargs) hook.call(**kwargs)
target_obj.buffer.add_message(user.nickname, message, action,
buffer_obj = target_obj
if event["server"].is_own_nickname(user.nickname):
buffer_obj = user
buffer_obj.buffer.add_message(user.nickname, message, action,
event["tags"], True) event["tags"], True)