summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/admin.c13
-rw-r--r--mbbsd/user.c7
-rw-r--r--sample/etc/angel_notify23
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 @@
+ ùùùùùùùùùùùùùùùùùùùùùùùùùùùù®¥³ß§A¦¨¬°¤Ñ¨ÏÅoùùùùùùùùùùùùùùùùùùùùùùùùùù
+ ¥H¤U¬O¤p¤Ñ¨Ï¶·¿í¦uªº±ø¬ù³á! ¡O 
+   ¡O  
+   ¡¸²Ä¤@±ø ¤p¤Ñ¨Ï¥ô°È¬OªA°È¤p¥D¤H¡A  
+    ³Ì­º­nªº¥ô°È¬O±Ð¾É¤p¥D¤H¨Ï¥ÎPtt¡A¤£¥i¦]¥ô¦ó²z¥Ñ¼o¦¢ 
+   ¡¯     ¦¸­n¥ô°È¬O´À¤p¥D¤H¸Ñ¨M¨ä¥L°ÝÃD¡A±a¨ÓÅw¼Ö  
+  " 
+  ¡¹²Ä¤G±ø ¤p¤Ñ¨Ï¥u¯àÀqÀqªA°È"¤£"¯à¥D°ÊÅý¤p¥D¤Hª¾¹D¨­¤À" ¡³£]" 
+  ¡D   ¢© 
+  ¡¸²Ä¤T±ø ¤p¤Ñ¨Ï¤£¯à¦]¬°¤p¥D¤Hªº©Ê§O¦~ÄÖ¡A¦Ó¦³©Òª[µø  ùü 
+  
+  ¡¹²Ä¥|±ø ¤p¤Ñ¨Ï¤£¬O³s½Ë¥\¯à¡A¦b¤p¥D¤H©I³ê«á²{ID¥D°ÊÄÌÂZ¤p¥D¤H¡A 
+    (¦p­n·Ó¤ù¹q¸Ü) 
+  ¾DÀËÁ|½T»{ªÌ±N©Þ°£¤Ñ¨Ï¯Í»H¦¨¬°¼Z¸¨¤Ñ¨Ï¡A¥B¤½§iid¥H¤Î¥Ã¤£¿ý¥Î 
+  ¡O £»
+  " ¡¸²Ä¤­±ø ¤p¤Ñ¨Ï¥ô´Á¥b¦~¤@¥ô¡A¥ô´Á©¡º¡±N©Þ°£¤p¤Ñ¨ÏÅv­­¡A ªí²{¯S§O 
+ £\¡³"  Àu¨}¥iµø·NÄ@Äò¥ô(ªí²{Àu¨}¦p°Ñ»P¦U²Õ¬¡°Ê©Î¬O¤H®ð«e´X¦Wµ¥µ¥
+  ¢¨ ¡P  
+  ùý ¡¹²Ä¤»±ø ®É±`¤£¶}"¬O§_¶}©ñ¤p¥D¤H"¿ï¶µ¡A¸gµ{¦¡¹ð¦¸Àˬd¥X¨ÓªÌ¡A 
+  ±N©Þ°£¤Ñ¨Ï¯Í» ¦¨¬°¼Z¸¨¤Ñ¨Ï (º¡¤­¦¸¸Ñ°£Åv­­) 
+   ¡C 
+  
+  ¡E