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): ...@@ -246,9 +246,7 @@ class ChatTab(Tab):
def on_enter(self): def on_enter(self):
txt = self.input.key_enter() txt = self.input.key_enter()
if not Tab.on_enter(self): if not Tab.on_enter(self, txt):
if txt.startswith('//'):
txt = txt[1:]
self.command_say(txt) self.command_say(txt)
def command_say(self, line): def command_say(self, line):
......
...@@ -704,7 +704,6 @@ class Input(Win): ...@@ -704,7 +704,6 @@ class Input(Win):
return len(self.text) == 0 return len(self.text) == 0
def resize(self, height, width, y, x, stdscr): def resize(self, height, width, y, x, stdscr):
self._resize(height, width, y, x, stdscr) self._resize(height, width, y, x, stdscr)
self._win.erase() self._win.erase()
self.addnstr(0, 0, self.text, self.width-1) 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