summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/proto.h3
-rw-r--r--mbbsd/board.c6
-rw-r--r--mbbsd/mbbsd.c6
3 files changed, 7 insertions, 8 deletions
diff --git a/include/proto.h b/include/proto.h
index 444c58d2..d80f0adc 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -1,4 +1,4 @@
-/* $Id: proto.h,v 1.17 2002/05/24 16:40:30 in2 Exp $ */
+/* $Id: proto.h,v 1.18 2002/05/24 18:24:11 ptt Exp $ */
#ifndef INCLUDE_PROTO_H
#define INCLUDE_PROTO_H
@@ -53,6 +53,7 @@ int board_etc();
int board_digest();
/* board */
+void setutmpbid(int bid);
int brc_unread(char *fname, int bnum, int *blist);
int brc_initial(char *boardname);
void brc_update();
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 ("<<下站通知>> -- 我走囉!");