From be7df58794a73ccc29639c72806359aeed2d0a66 Mon Sep 17 00:00:00 2001 From: victor Date: Mon, 20 Nov 2006 04:24:32 +0000 Subject: #define MAX_GUEST fix util/stock.perl thanks watch.bbs@ptt2 git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3446 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/config.h | 4 ++++ mbbsd/mbbsd.c | 2 +- util/stock.perl | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/config.h b/include/config.h index 194e5dc9..cd62633e 100644 --- a/include/config.h +++ b/include/config.h @@ -33,6 +33,10 @@ #define MAX_ACTIVE (1024) /* 程计 */ #endif +#ifndef MAX_GUEST +#define MAX_GUEST (100) /* 程 guest 计 */ +#endif + #ifndef MAX_CPULOAD #define MAX_CPULOAD (70) /* CPU 程蔼load */ #endif diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index e3facc19..257c925a 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -600,7 +600,7 @@ multi_user_check(void) } } else { /* allow multiple guest user */ - if (search_ulistn(usernum, 100) != NULL) { + if (search_ulistn(usernum, MAX_GUEST) != NULL) { vmsg("╆簆ヘ玡Τび guest , 叫ノnew爹"); exit(1); } diff --git a/util/stock.perl b/util/stock.perl index 1c4120ed..e9d57580 100644 --- a/util/stock.perl +++ b/util/stock.perl @@ -10,7 +10,7 @@ open(BBSPOST, " >etc/stock.tmp"); # Header # ず甧 -my $url = 'http://quotecenter.jpc.com.tw/today_stock_price.htm'; +my $url = 'http://sii.tse.com.tw/html/T31'; open(WEATHER, "/usr/bin/lynx -dump $url |"); while() { next if $_ eq "\n"; -- cgit v1.2.3