diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-08-21 22:11:38 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-08-21 22:11:38 +0800 |
commit | 612bac483e447184e224772d83b17f6a2958dfc8 (patch) | |
tree | 51a723498b460e22197564d0d4e6a19662f9d2b8 | |
parent | 06cc8f81ad2760a8d4f0828771b3e83798906525 (diff) | |
download | pttbbs-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
-rw-r--r-- | mbbsd/admin.c | 13 | ||||
-rw-r--r-- | mbbsd/user.c | 7 | ||||
-rw-r--r-- | sample/etc/angel_notify | 23 |
3 files changed, 41 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)¬ÝªO´Á (I)¬G¶m (J)¥X¯¸µe± (K)¥Í¤é¥d (L)¸`¤é (M)¥~Äy¨Ï¥ÎªÌ»{ÃÒ³qª¾\n"); - outs(" (N)¥~Äy¨Ï¥ÎªÌ¹L´Áĵ§i³qª¾\n"); + outs(" (N)¥~Äy¨Ï¥ÎªÌ¹L´Áĵ§i³qª¾" +#ifdef PLAY_ANGEL + " (Y)¤p¤Ñ¨Ï»{ÃÒ³qª¾" +#endif + "\n"); getdata(b_lines - 1, 0, "[Q]¨ú®ø[1-9 A-N]¡H", 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, "¯Í»Hªø¥X¨Ó¤F¡I", "etc/angel_notify", "[¤W«Ò]"); +#endif + } if (strcmp(u->userid, x.userid)) { char src[STRLEN], dst[STRLEN]; diff --git a/sample/etc/angel_notify b/sample/etc/angel_notify new file mode 100644 index 00000000..6b14832f --- /dev/null +++ b/sample/etc/angel_notify @@ -0,0 +1,23 @@ +[m[1m [33;44mùùùùùùùùùùùùùùùùùùùùùùùùùùùù[36m®¥³ß§A¦¨¬°¤Ñ¨ÏÅo[33mùùùùùùùùùùùùùùùùùùùùùùùùùù[m +[1m [44m¥H¤U¬O¤p¤Ñ¨Ï¶·¿í¦uªº±ø¬ù³á! ¡O [m +[1m [44m [36m ¡O [37m [m +[1m [44m [33m ¡¸[36m²Ä¤@±ø[37m ¤p¤Ñ¨Ï¥ô°È¬OªA°È¤p¥D¤H¡A [32m [m +[1m [44m [31m [37m ³Ìºnªº¥ô°È¬O±Ð¾É¤p¥D¤H¨Ï¥ÎPtt¡A¤£¥i¦]¥ô¦ó²z¥Ñ¼o¦¢ [m +[1m [44m [35m ¡¯ [37m [31m [;30;44m [1;37m ¦¸n¥ô°È¬O´À¤p¥D¤H[32m¸Ñ¨M¨ä¥L°ÝÃD¡A±a¨ÓÅw¼Ö [37m [m +[1m [44m " [m +[1m [44m [33m¡¹[36m²Ä¤G±ø[37m ¤p¤Ñ¨Ï¥u¯àÀqÀqªA°È[31m"¤£"[37m¯à¥D°ÊÅý¤p¥D¤Hª¾¹D¨¤À" ¡³£]" [m +[1m [44m ¡D [36m [35m ¢©[37m [m +[1m [44m [33m¡¸[36m²Ä¤T±ø [37m¤p¤Ñ¨Ï[32m¤£¯à[37m¦]¬°¤p¥D¤Hªº©Ê§O¦~ÄÖ¡A¦Ó¦³©Ò[32mª[µø[;30;44m [1;37m ùü [m +[1m [44m [m +[1m [44m [33m¡¹[36m²Ä¥|±ø[;30;44m [1;36m¤p¤Ñ¨Ï¤£¬O³s½Ë¥\¯à¡A¦b¤p¥D¤H©I³ê«á²{ID¥D°ÊÄÌÂZ¤p¥D¤H[;30;44m¡A[37m [m +[1m [34;44m [31m [32m (¦pn·Ó¤ù¹q¸Ü) [m +[1m [32;44m ¾DÀËÁ|½T»{ªÌ±N©Þ°£¤Ñ¨Ï¯Í»H¦¨¬°¼Z¸¨¤Ñ¨Ï¡A¥B¤½§iid¥H¤Î¥Ã¤£¿ý¥Î[;37;44m [m +[1m [44m [33m¡O[37m [36m£»[m +[1m [44m " [33m¡¸[36m²Ä¤±ø[37m ¤p¤Ñ¨Ï[32m¥ô´Á¥b¦~¤@¥ô[37m¡A¥ô´Á©¡º¡±N©Þ°£¤p¤Ñ¨ÏÅv¡A ªí²{¯S§O [m +[1m [44m£\¡³" [;30;44m [1;32mÀu¨}¥iµø·NÄ@Äò¥ô[37m(ªí²{Àu¨}¦p°Ñ»P¦U²Õ¬¡°Ê©Î¬O¤H®ð«e´X¦Wµ¥µ¥[m +[1m [44m [31m¢¨[37m ¡P [;37;44m [m +[1m [44m ùý [33m¡¹[36m²Ä¤»±ø[33m [32m®É±`¤£¶}"¬O§_¶}©ñ¤p¥D¤H"¿ï¶µ[37m¡A¸gµ{¦¡¹ð¦¸Àˬd¥X¨ÓªÌ¡A[;37;44m [m +[1m [44m [32m±N©Þ°£¤Ñ¨Ï¯Í» ¦¨¬°¼Z¸¨¤Ñ¨Ï [37m(º¡¤¦¸¸Ñ°£Åv) [m +[1m [;37;44m [1;31m ¡C[;37;44m [m +[1m [;37;44m [m +[1m [;37;44m [1m¡E[;37;44m [m[m |