From 5a90c705682545e9d3734e5a17510b1b1867b867 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sat, 26 Feb 2011 14:19:15 +0100 Subject: Send chatstates to MUC only if the room is joined --- src/tabs.py | 4 ++-- 1 file 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): -- cgit v1.2.3