From 0e4dfdc767a9354bb74b4796eb243086f0e09078 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Wed, 12 Apr 2017 23:04:35 +1000 Subject: [PATCH] Add missing function --- menus.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/menus.c b/menus.c index 8c64b4d..70e6853 100644 --- a/menus.c +++ b/menus.c @@ -42,6 +42,7 @@ #define MENU_PREVFILEDIR 33 #define MENU_NEXTFILESUB 34 #define MENU_PREVFILESUB 35 +#define MENU_LISTMESSAGES 36 extern struct bbs_config conf; extern struct user_record *gUser; @@ -173,6 +174,8 @@ int menu_system(char *menufile) { menu[menu_items-1]->command = MENU_NEXTFILESUB; } else if (strncasecmp(&buffer[8], "PREVFILESUB", 11) == 0) { menu[menu_items-1]->command = MENU_PREVFILESUB; + } else if (strncasecmp(&buffer[8], "LISTMESSAGES", 12) == 0) { + menu[menu_items-1]->command = MENU_LISTMESSAGES; } } else if (strncasecmp(buffer, "DATA", 4) == 0) { menu[menu_items-1]->data = strdup(&buffer[5]); @@ -413,7 +416,10 @@ int menu_system(char *menufile) { break; case MENU_PREVFILESUB: prev_file_sub(gUser); - break; + break; + case MENU_LISTMESSAGES: + list_messages(gUser); + break; } break; }