From a18157700ca68249da622f6a7b6a5abda1f7156c Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 3 Jun 2019 11:37:23 +0100 Subject: [PATCH] Check from_self, not if target==is_own_nickname, use from_self when adding to buffer obj --- modules/line_handler/message.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/line_handler/message.py b/modules/line_handler/message.py index 9bd4d6a0..e7f3e2e9 100644 --- a/modules/line_handler/message.py +++ b/modules/line_handler/message.py @@ -99,8 +99,8 @@ def message(events, event): hook.call(**kwargs) buffer_obj = target_obj - if event["server"].is_own_nickname(user.nickname): + if not from_self: buffer_obj = user buffer_obj.buffer.add_message(user.nickname, message, action, - event["tags"], True) + event["tags"], from_self)