summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-08-21 22:11:38 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-08-21 22:11:38 +0800
commit612bac483e447184e224772d83b17f6a2958dfc8 (patch)
tree51a723498b460e22197564d0d4e6a19662f9d2b8 /mbbsd
parent06cc8f81ad2760a8d4f0828771b3e83798906525 (diff)
downloadpttbbs-612bac483e447184e224772d83b17f6a2958dfc8.tar
pttbbs-612bac483e447184e224772d83b17f6a2958dfc8.tar.gz
pttbbs-612bac483e447184e224772d83b17f6a2958dfc8.tar.bz2
pttbbs-612bac483e447184e224772d83b17f6a2958dfc8.tar.lz
pttbbs-612bac483e447184e224772d83b17f6a2958dfc8.tar.xz
pttbbs-612bac483e447184e224772d83b17f6a2958dfc8.tar.zst
pttbbs-612bac483e447184e224772d83b17f6a2958dfc8.zip
Mail user when PERM_ANGEL setted.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2164 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/admin.c13
-rw-r--r--mbbsd/user.c7
2 files changed, 18 insertions, 2 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index d193384b..d244ee46 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -592,7 +592,11 @@ x_file()
#endif
"\n");
outs(" (H)看板期限 (I)故鄉 (J)出站畫面 (K)生日卡 (L)節日 (M)外籍使用者認證通知\n");
- outs(" (N)外籍使用者過期警告通知\n");
+ outs(" (N)外籍使用者過期警告通知"
+#ifdef PLAY_ANGEL
+ " (Y)小天使認證通知"
+#endif
+ "\n");
getdata(b_lines - 1, 0, "[Q]取消[1-9 A-N]?", ans, sizeof(ans), LCECHO);
switch (ans[0]) {
@@ -695,6 +699,13 @@ x_file()
case 'n':
fpath = "etc/foreign_expired_warn";
break;
+
+#ifdef PLAY_ANGEL
+ case 'y':
+ fpath = "etc/angel_notify";
+ break;
+#endif
+
default:
return FULLUPDATE;
}
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 8decef77..d12e0beb 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -629,8 +629,13 @@ uinfo_query(userec_t * u, int real, int unum)
return;
}
if (getans(msg_sure_ny) == 'y') {
- if (flag)
+ if (flag) {
post_change_perm(temp, i, cuser.userid, x.userid);
+#ifdef PLAY_ANGEL
+ if (i & ~temp & PERM_ANGEL)
+ mail_id(x.userid, "翅膀長出來了!", "etc/angel_notify", "[上帝]");
+#endif
+ }
if (strcmp(u->userid, x.userid)) {
char src[STRLEN], dst[STRLEN];