Fix #2175
This commit is contained in:
parent
03a691c4d1
commit
007170e39e
1 changed files with 6 additions and 5 deletions
11
src/tabs.py
11
src/tabs.py
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue