summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/pttstruct.h7
-rw-r--r--mbbsd/bbs.c3
-rw-r--r--util/shmctl.c5
3 files changed, 9 insertions, 6 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h
index 2e3e5492..0d60a7a5 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -1,4 +1,4 @@
-/* $Id: pttstruct.h,v 1.33 2003/04/07 08:08:47 in2 Exp $ */
+/* $Id: pttstruct.h,v 1.34 2003/04/08 09:53:21 in2 Exp $ */
#ifndef INCLUDE_STRUCT_H
#define INCLUDE_STRUCT_H
@@ -353,8 +353,9 @@ typedef struct {
union {
int v[192];
struct {
- int dymaxactive;
- int toomanyusers;
+ int dymaxactive; /* 動態設定最大人數上限 */
+ int toomanyusers; /* 超過人數上限不給進的個數 */
+ int noonlineuser; /* 站上使用者不高亮度顯示 */
} e;
} GV2;
char gap3_2[128];
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 65c5408a..2651e328 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1,4 +1,4 @@
-/* $Id: bbs.c,v 1.83 2003/03/20 15:10:49 victor Exp $ */
+/* $Id: bbs.c,v 1.84 2003/04/08 09:53:21 in2 Exp $ */
#include "bbs.h"
static void
@@ -165,6 +165,7 @@ readdoent(int num, fileheader_t * ent)
if (!strncmp(title, "[公告]", 6))
special = 1;
if (!strchr(ent->owner, '.') && (uid = searchuser(ent->owner)) &&
+ !SHM->GV2.e.noonlineuser &&
(uentp = search_ulist(uid)) && isvisible(currutmp, uentp))
isonline = 1;
diff --git a/util/shmctl.c b/util/shmctl.c
index 2232c42d..89c9069a 100644
--- a/util/shmctl.c
+++ b/util/shmctl.c
@@ -1,4 +1,4 @@
-/* $Id: shmctl.c,v 1.37 2003/04/07 08:08:47 in2 Exp $ */
+/* $Id: shmctl.c,v 1.38 2003/04/08 09:53:21 in2 Exp $ */
#include "bbs.h"
#include <sys/wait.h>
@@ -337,7 +337,8 @@ int utmpnum(int argc, char **argv)
return 0;
}
-char *GV2str[] = {"dymaxactive", "toomanyusers", NULL};
+char *GV2str[] = {"dymaxactive", "toomanyusers",
+ "noonlineuser", NULL};
int showglobal(int argc, char **argv)
{
int i;