lchat: in case the `-m` flag receives an invalid mode, abort - lchat - A line oriented chat front end for ii.
 (HTM) git clone git://git.suckless.org/lchat
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit 3fc9c4d7ee1bd9a05b7bed3e835861923b6c9b28
 (DIR) parent f730489e0a632bd738ade1e91c85c6ffdad21ba8
 (HTM) Author: Tom Schwindl <schwindl@posteo.de>
       Date:   Wed, 11 Jan 2023 09:59:12 +0100
       
       lchat: in case the `-m` flag receives an invalid mode, abort
       
       Diffstat:
         M lchat.c                             |       2 ++
       
       1 file changed, 2 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/lchat.c b/lchat.c
       @@ -221,6 +221,8 @@ main(int argc, char *argv[])
                        case 'm':
                                if (strcmp(optarg, "emacs") == 0)
                                        sl_mode(sl, SL_EMACS);
       +                        else
       +                                die("lchat: invalid mode");
                                break;
                        case 'h':
                        default: