diff options
-rw-r--r-- | include/config.h | 4 | ||||
-rw-r--r-- | mbbsd/mbbsd.c | 2 | ||||
-rw-r--r-- | 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(<WEATHER>) { next if $_ eq "\n"; |