From 4d1e9203c8b08b9c7babf9b01071bba634ba9a9f Mon Sep 17 00:00:00 2001 From: in2 Date: Tue, 8 Apr 2003 09:53:21 +0000 Subject: when GV2.e.noonlineuser, do NOT search if the author is online in article list git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@780 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/pttstruct.h | 7 ++++--- mbbsd/bbs.c | 3 ++- util/shmctl.c | 5 +++-- 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 @@ -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; -- cgit v1.2.3