From 007170e39ed7dae13e19c3fe752b910db523d48b Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 13 May 2011 20:24:10 +0200 Subject: [PATCH] Fix #2175 --- src/tabs.py | 11 ++++++----- 1 file 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):