diff options
author | Adam <Adam@anope.org> | 2016-10-01 10:44:21 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-01 10:44:21 -0400 |
commit | 0110013f2cb66c57705d2d0f1f53c4d06924106d (patch) | |
tree | e0d3114fa634d123f5c06c3e333da013d8a76da3 /modules/memoserv/info.cpp | |
parent | fa03def1dce87004b164a5fd7844c2306eac685f (diff) |
Include memo mail information in ms_info
Diffstat (limited to 'modules/memoserv/info.cpp')
-rw-r--r-- | modules/memoserv/info.cpp | 22 |
1 files changed, 19 insertions, 3 deletions
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.")); } |