Check from_self, not if target==is_own_nickname, use from_self when adding to
buffer obj
This commit is contained in:
parent
ae3e2708c0
commit
a18157700c
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue