summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-11-11 11:06:03 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-11-11 11:06:03 +0800
commit0385ac6b36473eb38257f52ed8b9ada106a049d7 (patch)
treef18c0c83aee20b7b0a9c35ffa18d80d9b21b92f8
parent6cd67a42dd883db9aa234143c58a5447756b1cc3 (diff)
downloadpttbbs-0385ac6b36473eb38257f52ed8b9ada106a049d7.tar
pttbbs-0385ac6b36473eb38257f52ed8b9ada106a049d7.tar.gz
pttbbs-0385ac6b36473eb38257f52ed8b9ada106a049d7.tar.bz2
pttbbs-0385ac6b36473eb38257f52ed8b9ada106a049d7.tar.lz
pttbbs-0385ac6b36473eb38257f52ed8b9ada106a049d7.tar.xz
pttbbs-0385ac6b36473eb38257f52ed8b9ada106a049d7.tar.zst
pttbbs-0385ac6b36473eb38257f52ed8b9ada106a049d7.zip
move error board to boards.error/
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@571 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/util/expire.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/pttbbs/util/expire.c b/pttbbs/util/expire.c
index 50c568da..30e9ab2f 100644
--- a/pttbbs/util/expire.c
+++ b/pttbbs/util/expire.c
@@ -1,4 +1,4 @@
-/* $Id: expire.c,v 1.5 2002/11/06 12:07:59 in2 Exp $ */
+/* $Id: expire.c,v 1.6 2002/11/11 03:06:03 in2 Exp $ */
/* 自動砍信工具程式 */
#include "bbs.h"
@@ -39,7 +39,11 @@ life *brd;
if((bid = getbnum(brd->bname)) == 0 ||
strcmp(brd->bname, bcache[bid-1].brdname))
{
- printf("no such board?: %s\n", brd->bname);
+ char cmd[1024];
+ printf("no such board?: %s\n", brd->bname);
+ sprintf(cmd, "mv %s/boards/%c/%s %s/boards.error/%s",
+ BBSHOME, brd->bname[0], brd->bname, BBSHOME, brd->bname);
+ system(cmd);
return;
}
#ifdef VERBOSE