This commit is contained in:
mathieui 2011-05-13 20:24:10 +02:00
parent 03a691c4d1
commit 007170e39e

View file

@ -282,11 +282,12 @@ class ChatTab(Tab):
def on_enter(self): def on_enter(self):
txt = self.input.key_enter() txt = self.input.key_enter()
clean_text = xhtml.clean_text(txt) if txt:
if not self.execute_command(clean_text): clean_text = xhtml.clean_text(txt)
if txt.startswith('//'): if not self.execute_command(clean_text):
txt = txt[1:] if txt.startswith('//'):
self.command_say(txt) txt = txt[1:]
self.command_say(txt)
self.cancel_paused_delay() self.cancel_paused_delay()
def send_chat_state(self, state): def send_chat_state(self, state):