X-Git-Url: https://plomlompom.com/repos/do_todos?a=blobdiff_plain;f=rogue_chat_curses.py;h=e037e7d5943f3762ffc72f08952a4d0f20fcec67;hb=957e53c2d64cbb227f5bfe34653c766381659f01;hp=defc2724840ae41127b20748669288e8c5bbf73c;hpb=0a25fa6dadb1560ed64c22fe12a6c3d8de567b84;p=plomrogue2 diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py index defc272..e037e7d 100755 --- a/rogue_chat_curses.py +++ b/rogue_chat_curses.py @@ -627,7 +627,7 @@ class TUI: self.input_ = "" self.switch_mode('play') elif self.mode == self.mode_chat and key == '\n': - if self.input_[0] == '/': + if self.input_[0] == '/': # FIXME fails on empty input if self.input_ in {'/' + self.keys['switch_to_play'], '/play'}: self.switch_mode('play') elif self.input_ in {'/' + self.keys['switch_to_study'], '/study'}: