Commit e016305c authored by louiz’'s avatar louiz’

And fix the on_enter again (for commands)

parent a8630190
......@@ -246,9 +246,7 @@ class ChatTab(Tab):
def on_enter(self):
txt = self.input.key_enter()
if not Tab.on_enter(self):
if txt.startswith('//'):
txt = txt[1:]
if not Tab.on_enter(self, txt):
def command_say(self, line):
......@@ -704,7 +704,6 @@ class Input(Win):
return len(self.text) == 0
def resize(self, height, width, y, x, stdscr):
self._resize(height, width, y, x, stdscr)
self.addnstr(0, 0, self.text, self.width-1)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment