diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-04 00:23:23 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-04 00:23:23 +0800 |
commit | 34136f1311cf816b692a703796a9a3ba45bdaf4d (patch) | |
tree | cf06fb445912862dbdf81aa561d4266323f6863d /mbbsd/admin.c | |
parent | 6a459a66d264a1eb8f8f62692ceb48c2ed1c0cf1 (diff) | |
download | pttbbs-34136f1311cf816b692a703796a9a3ba45bdaf4d.tar pttbbs-34136f1311cf816b692a703796a9a3ba45bdaf4d.tar.gz pttbbs-34136f1311cf816b692a703796a9a3ba45bdaf4d.tar.bz2 pttbbs-34136f1311cf816b692a703796a9a3ba45bdaf4d.tar.lz pttbbs-34136f1311cf816b692a703796a9a3ba45bdaf4d.tar.xz pttbbs-34136f1311cf816b692a703796a9a3ba45bdaf4d.tar.zst pttbbs-34136f1311cf816b692a703796a9a3ba45bdaf4d.zip |
for sysop to recover board.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2458 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r-- | mbbsd/admin.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c index 52099be9..2151f934 100644 --- a/mbbsd/admin.c +++ b/mbbsd/admin.c @@ -838,12 +838,8 @@ m_newbrd(int recover) strlcpy(newboard.title + 7, genbuf, sizeof(newboard.title) - 7); setbpath(genbuf, newboard.brdname); - if (recover) { - if (dashd(genbuf)) { - vmsg("此看板已經存在! 請取不同英文板名"); - return -1; - } - } else if (getbnum(newboard.brdname) > 0 || mkdir(genbuf, 0755) == -1) { + if (!recover && + (getbnum(newboard.brdname) > 0 || mkdir(genbuf, 0755) == -1)) { vmsg("此看板已經存在! 請取不同英文板名"); return -1; } |