From 6422381ae50885b8f162184fd98ade5ad55085f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 6 Nov 2018 22:08:33 +0100 Subject: [PATCH] buffer: Add the room_id to a buffer localvar. --- matrix/buffer.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/matrix/buffer.py b/matrix/buffer.py index ecbb3a5..18de907 100644 --- a/matrix/buffer.py +++ b/matrix/buffer.py @@ -835,6 +835,12 @@ class RoomBuffer(object): except ValueError: pass + W.buffer_set( + self.weechat_buffer._ptr, + "localvar_set_room_id", + room.room_id + ) + @property def backlog_pending(self): return self._backlog_pending