Add missing function
This commit is contained in:
parent
7379e8e81e
commit
0e4dfdc767
6
menus.c
6
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]);
|
||||
@ -414,6 +417,9 @@ int menu_system(char *menufile) {
|
||||
case MENU_PREVFILESUB:
|
||||
prev_file_sub(gUser);
|
||||
break;
|
||||
case MENU_LISTMESSAGES:
|
||||
list_messages(gUser);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user