summaryrefslogtreecommitdiffstats
path: root/mbbsd/admin.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r--mbbsd/admin.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index 74efe5a5..104f749d 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -608,6 +608,8 @@ m_mod_board(char *bname)
getdata(b_lines - 1, 0, "請您確定(Y/N)?[Y]", genbuf, 4, LCECHO);
if ((*genbuf != 'n') && memcmp(&newbh, &bh, sizeof(bh))) {
+ char buf[64];
+
if (strcmp(bh.brdname, newbh.brdname)) {
char src[60], tar[60];
@@ -624,6 +626,13 @@ m_mod_board(char *bname)
reset_board(bid);
sort_bcache();
log_usies("SetBoard", newbh.brdname);
+
+ snprintf(buf, sizeof(buf), "[看板變更] %s (by %s)", bh.brdname, cuser.userid);
+ snprintf(genbuf, sizeof(genbuf),
+ "板名: %s => %s\n"
+ "板主: %s => %s\n",
+ bh.brdname, newbh.brdname, bh.BM, newbh.BM);
+ post_msg("Security", buf, genbuf, "[系統安全局]");
}
}
return 0;