diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-02-26 14:19:15 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-02-26 14:19:15 +0100 |
commit | 5a90c705682545e9d3734e5a17510b1b1867b867 (patch) | |
tree | a679aa5de319dc73946ed6d9ebc4590e04bcdab2 | |
parent | 81143e7125fdfaf7d8e8a54efb1776886ff8fb3d (diff) | |
download | poezio-5a90c705682545e9d3734e5a17510b1b1867b867.tar.gz poezio-5a90c705682545e9d3734e5a17510b1b1867b867.tar.bz2 poezio-5a90c705682545e9d3734e5a17510b1b1867b867.tar.xz poezio-5a90c705682545e9d3734e5a17510b1b1867b867.zip |
Send chatstates to MUC only if the room is joined
-rw-r--r-- | src/tabs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tabs.py b/src/tabs.py index 20ddd212..ad43672a 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -690,7 +690,7 @@ class MucTab(ChatTab, TabWithInfoWin): if self.text_win.built_lines and self.text_win.built_lines[-1] is None: self.text_win.remove_line_separator() curses.curs_set(1) - if config.get('send_chat_states', 'true') == 'true' and not self.input.get_text(): + if self.get_room().joined and config.get('send_chat_states', 'true') == 'true' and not self.input.get_text(): self.send_chat_state('active') def on_scroll_up(self): @@ -803,7 +803,7 @@ class PrivateTab(ChatTab, TabWithInfoWin): self._room.set_color_state(theme.COLOR_TAB_NORMAL) self.text_win.remove_line_separator() self.text_win.add_line_separator() - if config.get('send_chat_states', 'true') == 'true' and not self.input.get_text(): + if self.get_room().joined and config.get('send_chat_states', 'true') == 'true' and not self.input.get_text(): self.send_chat_state('inactive') def on_gain_focus(self): |