Check from_self, not if target==is_own_nickname, use from_self when adding to

buffer obj
This commit is contained in:
jesopo 2019-06-03 11:37:23 +01:00
parent ae3e2708c0
commit a18157700c

View file

@ -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)