From 34136f1311cf816b692a703796a9a3ba45bdaf4d Mon Sep 17 00:00:00 2001 From: ptt Date: Thu, 3 Feb 2005 16:23:23 +0000 Subject: for sysop to recover board. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2458 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/admin.c | 8 ++------ 1 file 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; } -- cgit v1.2.3