summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-05-13 20:24:10 +0200
committermathieui <mathieui@mathieui.net>2011-05-13 20:24:10 +0200
commit007170e39ed7dae13e19c3fe752b910db523d48b (patch)
treeb4a5c6b2b8ad309f74654c3715c7e13cd378db84 /src
parent03a691c4d16e2b40c081d89629172c4f0ac870be (diff)
downloadpoezio-007170e39ed7dae13e19c3fe752b910db523d48b.tar.gz
poezio-007170e39ed7dae13e19c3fe752b910db523d48b.tar.bz2
poezio-007170e39ed7dae13e19c3fe752b910db523d48b.tar.xz
poezio-007170e39ed7dae13e19c3fe752b910db523d48b.zip
Fix #2175
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 796c2f26..fff73467 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -282,11 +282,12 @@ class ChatTab(Tab):
def on_enter(self):
txt = self.input.key_enter()
- clean_text = xhtml.clean_text(txt)
- if not self.execute_command(clean_text):
- if txt.startswith('//'):
- txt = txt[1:]
- self.command_say(txt)
+ if txt:
+ clean_text = xhtml.clean_text(txt)
+ if not self.execute_command(clean_text):
+ if txt.startswith('//'):
+ txt = txt[1:]
+ self.command_say(txt)
self.cancel_paused_delay()
def send_chat_state(self, state):