summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-10 20:59:55 +0100
committermathieui <mathieui@mathieui.net>2011-11-10 20:59:55 +0100
commitfde8a8a1c96943a7531f3059eb8976d6894e3681 (patch)
tree8686d05e7409af786cb0cdd247a34a566146e469 /src
parent2dc4ec3badcf12d8208aa623a283ebc77b04ee63 (diff)
downloadpoezio-fde8a8a1c96943a7531f3059eb8976d6894e3681.tar.gz
poezio-fde8a8a1c96943a7531f3059eb8976d6894e3681.tar.bz2
poezio-fde8a8a1c96943a7531f3059eb8976d6894e3681.tar.xz
poezio-fde8a8a1c96943a7531f3059eb8976d6894e3681.zip
Fixes #2231
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 5b9c9fe8..1e5775fc 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -2010,7 +2010,7 @@ class ConversationTab(ChatTab):
self.state = '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() or not self.input.get_text().startswith('//'):
+ if config.get('send_chat_states', 'true') == 'true' and (not self.input.get_text() or not self.input.get_text().startswith('//')):
if resource:
self.send_chat_state('inactive')
@@ -2027,7 +2027,7 @@ class ConversationTab(ChatTab):
self.state = 'current'
curses.curs_set(1)
- if config.get('send_chat_states', 'true') == 'true' and not self.input.get_text() or not self.input.get_text().startswith('//'):
+ if config.get('send_chat_states', 'true') == 'true' and (not self.input.get_text() or not self.input.get_text().startswith('//')):
if resource:
self.send_chat_state('active')