summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-25 02:24:22 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-25 02:24:22 +0800
commit2aed4fa0ea1d611cd75402562ea2564bbd223ede (patch)
treef6054c428a68f062497748eaa4e877804979ebf9 /mbbsd
parent165c4b5c6acdf9a3888bc1b1f20b08e36eff2539 (diff)
downloadpttbbs-2aed4fa0ea1d611cd75402562ea2564bbd223ede.tar
pttbbs-2aed4fa0ea1d611cd75402562ea2564bbd223ede.tar.gz
pttbbs-2aed4fa0ea1d611cd75402562ea2564bbd223ede.tar.bz2
pttbbs-2aed4fa0ea1d611cd75402562ea2564bbd223ede.tar.lz
pttbbs-2aed4fa0ea1d611cd75402562ea2564bbd223ede.tar.xz
pttbbs-2aed4fa0ea1d611cd75402562ea2564bbd223ede.tar.zst
pttbbs-2aed4fa0ea1d611cd75402562ea2564bbd223ede.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@203 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/board.c6
-rw-r--r--mbbsd/mbbsd.c6
2 files changed, 5 insertions, 7 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 4aee2307..31569639 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.11 2002/05/24 18:16:05 ptt Exp $ */
+/* $Id: board.c,v 1.12 2002/05/24 18:24:22 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -621,8 +621,8 @@ static void show_brdlist(int head, int clsflag, int newflag) {
prints("\033[31mHOT\033[m");
else if(ptr->bh->nuser)
prints("\033[31m%2d\033[m ",ptr->bh->nuser);
- else prints(" %c ", ptr->bh->bvote? " ":"V");
- prints(".13s", ptr->bh->BM);
+ else prints(" %c ", ptr->bh->bvote? ' ':'V');
+ prints("%.13s", ptr->bh->BM);
refresh();
} else {
prints("%-40.40s %.13s", ptr->bh->title + 7, ptr->bh->BM);
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 62fcfa86..e964c2c0 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1,4 +1,4 @@
-/* $Id: mbbsd.c,v 1.30 2002/05/24 16:32:31 in2 Exp $ */
+/* $Id: mbbsd.c,v 1.31 2002/05/24 18:24:22 ptt Exp $ */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -208,9 +208,6 @@ u_exit (char *mode)
close(0);
close(1);
- /* random sleep to avoid MANY users logout at the same time */
- usleep((int)((float)rand() * 10000000 / RAND_MAX));
-
reload_money();
auto_backup ();
save_brdbuf();
@@ -220,6 +217,7 @@ u_exit (char *mode)
cuser.invisible = currutmp->invisible;
cuser.pager = currutmp->pager;
cuser.mind = currutmp->mind;
+ setutmpbid(0);
if (!(HAS_PERM (PERM_SYSOP) && HAS_PERM (PERM_DENYPOST)) &&
!currutmp->invisible )
do_aloha ("<<下站通知>> -- 我走囉!");