bar_items: Make the encrypted room sign configurable.
This commit is contained in:
parent
c1037620fa
commit
14f4da0708
2 changed files with 15 additions and 1 deletions
|
@ -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)):
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue