From a90d0dfe4dda88e70c5d0c9c7c018e399747a279 Mon Sep 17 00:00:00 2001 From: victor Date: Fri, 23 Sep 2005 09:21:06 +0000 Subject: log the modification of board git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3206 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/admin.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mbbsd') 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; -- cgit v1.2.3