From 4d299b19ebe5b577dd995436bb50f4f04a76a98a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 7 Aug 2018 11:26:45 +0200 Subject: [PATCH] buffer: Unknown messages don't contain a message attribute anymore. --- matrix/buffer.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/matrix/buffer.py b/matrix/buffer.py index ffc6511..4b13614 100644 --- a/matrix/buffer.py +++ b/matrix/buffer.py @@ -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,