summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-02-26 14:19:15 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-02-26 14:19:15 +0100
commit5a90c705682545e9d3734e5a17510b1b1867b867 (patch)
treea679aa5de319dc73946ed6d9ebc4590e04bcdab2 /src
parent81143e7125fdfaf7d8e8a54efb1776886ff8fb3d (diff)
downloadpoezio-5a90c705682545e9d3734e5a17510b1b1867b867.tar.gz
poezio-5a90c705682545e9d3734e5a17510b1b1867b867.tar.bz2
poezio-5a90c705682545e9d3734e5a17510b1b1867b867.tar.xz
poezio-5a90c705682545e9d3734e5a17510b1b1867b867.zip
Send chatstates to MUC only if the room is joined
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py4
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):