summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
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 ("<<下站通知>> -- 我走囉!");