From 0110013f2cb66c57705d2d0f1f53c4d06924106d Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 1 Oct 2016 10:44:21 -0400 Subject: Include memo mail information in ms_info --- modules/memoserv/info.cpp | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/memoserv/info.cpp b/modules/memoserv/info.cpp index 8b3f54d6d..aff622b21 100644 --- a/modules/memoserv/info.cpp +++ b/modules/memoserv/info.cpp @@ -173,12 +173,28 @@ class CommandMSInfo : public Command else source.Reply(_("You have no limit on the number of memos you may keep.")); + bool memo_mail = nc->HasFieldS("MEMO_MAIL"); if (nc->HasFieldS("MEMO_RECEIVE") && nc->HasFieldS("MEMO_SIGNON")) - source.Reply(_("You will be notified of new memos at logon and when they arrive.")); + { + if (memo_mail) + source.Reply(_("You will be notified of new memos at logon and when they arrive, and by mail when they arrive.")); + else + source.Reply(_("You will be notified of new memos at logon and when they arrive.")); + } else if (nc->HasFieldS("MEMO_RECEIVE")) - source.Reply(_("You will be notified when new memos arrive.")); + { + if (memo_mail) + source.Reply(_("You will be notified by message and by mail when new memos arrive.")); + else + source.Reply(_("You will be notified when new memos arrive.")); + } else if (nc->HasFieldS("MEMO_SIGNON")) - source.Reply(_("You will be notified of new memos at logon.")); + { + if (memo_mail) + source.Reply(_("You will be notified of new memos at logon, and by mail when they arrive.")); + else + source.Reply(_("You will be notified of new memos at logon.")); + } else source.Reply(_("You will not be notified of new memos.")); } -- cgit