diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-11-28 22:32:44 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-11-28 22:32:44 +0100 |
commit | 122d700ac3584eb2c93c0963b2c3ba078f9279d5 (patch) | |
tree | 9b65939bdf329c2b9c94825915c1f21c28a9bd06 /src/core.py | |
parent | 0954c12a075da8cb4bc403b475f04a4d84f57dc5 (diff) | |
download | poezio-122d700ac3584eb2c93c0963b2c3ba078f9279d5.tar.gz poezio-122d700ac3584eb2c93c0963b2c3ba078f9279d5.tar.bz2 poezio-122d700ac3584eb2c93c0963b2c3ba078f9279d5.tar.xz poezio-122d700ac3584eb2c93c0963b2c3ba078f9279d5.zip |
We can now configure each conversation independently, for some options.
Fixed #2039.
Diffstat (limited to 'src/core.py')
-rw-r--r-- | src/core.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core.py b/src/core.py index 8704563c..b940bb73 100644 --- a/src/core.py +++ b/src/core.py @@ -687,7 +687,8 @@ class Core(object): else: conversation.remote_wants_chatstates = False if 'private' in config.get('beep_on', 'highlight private').split(): - curses.beep() + if config.get_by_tabname('disable_beep', 'false', jid.full, False).lower() != 'true': + curses.beep() logger.log_message(jid.full.replace('/', '\\'), nick_from, body) if conversation is self.current_tab(): self.refresh_window() @@ -745,7 +746,8 @@ class Core(object): conversation.remote_wants_chatstates = False logger.log_message(jid.bare, remote_nick, body) if 'private' in config.get('beep_on', 'highlight private').split(): - curses.beep() + if config.get_by_tabname('disable_beep', 'false', jid.bare, False).lower() != 'true': + curses.beep() if self.current_tab() is not conversation: conversation.state = 'private' self.refresh_tab_win() @@ -1207,7 +1209,8 @@ class Core(object): tab.info_header.refresh(tab, tab.text_win) self.refresh_tab_win() if 'message' in config.get('beep_on', 'highlight private').split(): - curses.beep() + if config.get_by_tabname('disable_beep', 'false', jid.bare, False).lower() != 'true': + curses.beep() def add_message_to_text_buffer(self, buff, txt, time=None, nickname=None, history=None): """ |