diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-04-08 17:53:21 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-04-08 17:53:21 +0800 |
commit | 4d1e9203c8b08b9c7babf9b01071bba634ba9a9f (patch) | |
tree | 9b0611f2ec6a5e590d255254eb6cd7b22f2d3bca | |
parent | f87d2473455fb8a54f7621a65748d9c021f57480 (diff) | |
download | pttbbs-4d1e9203c8b08b9c7babf9b01071bba634ba9a9f.tar pttbbs-4d1e9203c8b08b9c7babf9b01071bba634ba9a9f.tar.gz pttbbs-4d1e9203c8b08b9c7babf9b01071bba634ba9a9f.tar.bz2 pttbbs-4d1e9203c8b08b9c7babf9b01071bba634ba9a9f.tar.lz pttbbs-4d1e9203c8b08b9c7babf9b01071bba634ba9a9f.tar.xz pttbbs-4d1e9203c8b08b9c7babf9b01071bba634ba9a9f.tar.zst pttbbs-4d1e9203c8b08b9c7babf9b01071bba634ba9a9f.zip |
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
-rw-r--r-- | include/pttstruct.h | 7 | ||||
-rw-r--r-- | mbbsd/bbs.c | 3 | ||||
-rw-r--r-- | 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 <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; |