only add to IRCBuffer when there's actually a message (e.g. exclude TAGMSG)
This commit is contained in:
parent
abccb06dc5
commit
dad60ed307
1 changed files with 6 additions and 4 deletions
|
@ -98,6 +98,7 @@ def message(events, event):
|
||||||
|
|
||||||
if is_channel:
|
if is_channel:
|
||||||
hook.call(channel=target_obj, **kwargs)
|
hook.call(channel=target_obj, **kwargs)
|
||||||
|
if message:
|
||||||
target_obj.buffer.add_message(user.nickname, message, action,
|
target_obj.buffer.add_message(user.nickname, message, action,
|
||||||
event["tags"], from_self)
|
event["tags"], from_self)
|
||||||
else:
|
else:
|
||||||
|
@ -107,5 +108,6 @@ def message(events, event):
|
||||||
if not from_self:
|
if not from_self:
|
||||||
buffer_obj = user
|
buffer_obj = user
|
||||||
|
|
||||||
|
if message:
|
||||||
buffer_obj.buffer.add_message(user.nickname, message, action,
|
buffer_obj.buffer.add_message(user.nickname, message, action,
|
||||||
event["tags"], from_self)
|
event["tags"], from_self)
|
||||||
|
|
Loading…
Reference in a new issue