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):
|
||||
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):
|
||||
|
|
Loading…
Reference in a new issue