jcs
/subtext
/amendments
/64
session: Make ? at main menu show short menu
jcs made amendment 64 over 2 years ago
--- session.c Sat Jan 22 20:40:21 2022
+++ session.c Sun Jan 23 13:51:10 2022
@@ -159,6 +159,16 @@ get_another_char:
/* who's online */
session_who(s);
break;
+ case '?':
+ /* short menu */
+ len = session_load_view(s, DB_TEXT_SHORTMENU_ID, &view);
+ if (len) {
+ session_output(s, view, len);
+ free(view);
+ } else
+ session_output_string(s, "\r\n[ Short menu missing! ]\r\n\r\n");
+ session_flush(s);
+ break;
default:
session_output_string(s, "Invalid option\r\n");
session_flush(s);