From 212f46a820d27d624f87a8414fca034d114bf018 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Fri, 1 Apr 2016 08:55:25 +1000 Subject: [PATCH] Fix for replying to messages --- mail_menu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mail_menu.c b/mail_menu.c index 5ca8ef1..3386fc3 100644 --- a/mail_menu.c +++ b/mail_menu.c @@ -599,7 +599,7 @@ void read_message(int socket, struct user_record *user, struct msg_headers *msgh if (user->sec_level < conf.mail_conferences[user->cur_mail_conf]->mail_areas[user->cur_mail_area]->write_sec_level) { s_putstring(socket, "\r\nSorry, you are not allowed to post in this area\r\n"); } else { - if (subject != NULL) { + if (msghs->msgs[mailno]->subject != NULL) { sprintf(buffer, "RE: %s", msghs->msgs[mailno]->subject); } subject = (char *)malloc(strlen(buffer) + 1); @@ -1222,7 +1222,6 @@ int mail_menu(int socket, struct user_record *user) { s_putstring(socket, "\r\nThere is no mail in this area\r\n"); } } - break; case 'c': {