summaryrefslogtreecommitdiff
path: root/modules/commands/ms_info.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-01-22 10:13:05 -0500
committerAdam <Adam@anope.org>2016-01-22 10:13:05 -0500
commiteac25d016ac542a4f0e380c8a8c0cb65515fd6db (patch)
tree4ed5184f70d24b94196ebc40302a877f4f55a1af /modules/commands/ms_info.cpp
parent164b349ef9cfbc0f275333b60b0786848ce0f2e7 (diff)
Include memo mail information in ms_info
Diffstat (limited to 'modules/commands/ms_info.cpp')
-rw-r--r--modules/commands/ms_info.cpp25
1 files changed, 21 insertions, 4 deletions
diff --git a/modules/commands/ms_info.cpp b/modules/commands/ms_info.cpp
index 00df72769..9a4b28142 100644
--- a/modules/commands/ms_info.cpp
+++ b/modules/commands/ms_info.cpp
@@ -168,15 +168,32 @@ class CommandMSInfo : public Command
else
source.Reply(_("You have no limit on the number of memos you may keep."));
- /* Ripped too. But differently because of a seg fault (loughs) */
+ bool memo_mail = nc->HasExt("MEMO_MAIL");
if (nc->HasExt("MEMO_RECEIVE") && nc->HasExt("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->HasExt("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->HasExt("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."));
+ }
}
}