buffer: Unknown messages don't contain a message attribute anymore.

This commit is contained in:
Damir Jelić 2018-08-07 11:26:45 +02:00
parent 99ca1b50ce
commit 4d299b19eb

View file

@ -945,10 +945,7 @@ class RoomBuffer(object):
elif isinstance(event, RoomMessageUnknown):
nick = self.find_nick(event.sender)
date = server_ts_to_weechat(event.server_timestamp)
data = ("Unknown message of type {t}, body: {body}").format(
t=event.type,
body=event.message
)
data = ("Unknown message of type {t}").format(t=event.type)
self.weechat_buffer.message(
nick,
data,