From 0f8a5abdc0818b4071bf4623a12ee95223b11ba3 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 17 May 2012 16:55:31 +0200 Subject: Add an option to always show the separator - Fixes #2240 --- data/default_config.cfg | 4 ++++ doc/en/configure.txt | 4 ++++ src/tabs.py | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/data/default_config.cfg b/data/default_config.cfg index 85366204..61c30c21 100644 --- a/data/default_config.cfg +++ b/data/default_config.cfg @@ -296,6 +296,10 @@ send_time = true max_messages_in_memory = 2048 max_lines_in_memory = 2048 +# Show the separator at the bottom of the text buffer, even if no one +# spoke +show_useless_separator = false + # Set this to true if you want the commands to be executed remotely # (with ssh & the daemon), see the documentation of the /link plugin # for details diff --git a/doc/en/configure.txt b/doc/en/configure.txt index e18b4fbb..e5098da1 100644 --- a/doc/en/configure.txt +++ b/doc/en/configure.txt @@ -438,6 +438,10 @@ foo = true If set to true, the color of the nick will be used in MUCs information messages, instead of the default color from the theme. +*show_useless_separator*:: false + + If true, show the separator in a chat room, even if no one spoke. + *hide_exit_join*:: -1 Exact same thing than hide_status_change, except that it concerns diff --git a/src/tabs.py b/src/tabs.py index be2a886d..92b913b0 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -1156,7 +1156,7 @@ class MucTab(ChatTab): def on_gain_focus(self): self.state = 'current' - if self.text_win.built_lines and self.text_win.built_lines[-1] is None: + if self.text_win.built_lines and self.text_win.built_lines[-1] is None and config.getl('show_useless_separator', 'false') != 'true': self.text_win.remove_line_separator() curses.curs_set(1) if self.joined and config.get_by_tabname('send_chat_states', 'true', self.general_jid, True) == 'true' and not self.input.get_text(): -- cgit v1.2.3