X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/static/git-favicon.png?a=blobdiff_plain;f=rogue_chat_curses.py;h=e037e7d5943f3762ffc72f08952a4d0f20fcec67;hb=957e53c2d64cbb227f5bfe34653c766381659f01;hp=defc2724840ae41127b20748669288e8c5bbf73c;hpb=e9bd2eb5770a2ca1f4c7c5728540fb7480ad7347;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'}: