diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-18 13:30:26 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-18 13:30:26 +0800 |
commit | b48646dff131780307bcc820bce1d865404d3c67 (patch) | |
tree | ad4b88c7ad82a453538616feb1fee5fc46acb356 /mbbsd | |
parent | ce3b6974793db3c2d95e5f4c88a45af377985a54 (diff) | |
download | pttbbs-b48646dff131780307bcc820bce1d865404d3c67.tar pttbbs-b48646dff131780307bcc820bce1d865404d3c67.tar.gz pttbbs-b48646dff131780307bcc820bce1d865404d3c67.tar.bz2 pttbbs-b48646dff131780307bcc820bce1d865404d3c67.tar.lz pttbbs-b48646dff131780307bcc820bce1d865404d3c67.tar.xz pttbbs-b48646dff131780307bcc820bce1d865404d3c67.tar.zst pttbbs-b48646dff131780307bcc820bce1d865404d3c67.zip |
add warning
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1778 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/board.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index bfc602ed..6f9bb440 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -806,8 +806,13 @@ choose_board(int newflag) brdnum = -1; break; case 'D': - ptr = &nbrd[num]; - delete_symbolic_link(&bcache[ptr->bid - 1], ptr->bid); + if (HAS_PERM(PERM_SYSOP)) { + ptr = &nbrd[num]; + if (ptr->myattr & NBRD_SYMBOLIC) { + if (getans("½T©w§R°£³sµ²¡H[N/y]") == 'y') + delete_symbolic_link(&bcache[ptr->bid - 1], ptr->bid); + } + } break; case Ctrl('D'): if (HAS_PERM(PERM_LOGINOK)) { |