bar_items: Make the encrypted room sign configurable.

This commit is contained in:
Damir Jelić 2018-11-14 22:05:56 +01:00
parent c1037620fa
commit 14f4da0708
2 changed files with 15 additions and 1 deletions

View file

@ -101,7 +101,9 @@ def matrix_bar_item_buffer_modes(data, item, window, buffer, extra_info):
modes = []
if room.encrypted:
modes.append("🔐")
modes.append(
G.CONFIG.look.encrypted_room_sign
)
if (server.client
and server.client.room_contains_unverified(room.room_id)):

View file

@ -464,6 +464,18 @@ class MatrixConfig(WeechatConfig):
" (note: content is evaluated, see /help eval)"),
eval_cast,
),
Option(
"encrypted_room_sign",
"string",
"",
0,
0,
"🔐",
("A sign that is used to show that the current room is "
"encrypted "
"(note: content is evaluated, see /help eval)"),
eval_cast,
),
Option(
"pygments_style",
"string",