summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-11-20 12:24:32 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-11-20 12:24:32 +0800
commitbe7df58794a73ccc29639c72806359aeed2d0a66 (patch)
tree19017a6822e39d95f8ec1492f68b119c27ec776f
parentf9cf12182841e312e40b9cb3d63aa93bd26b8010 (diff)
downloadpttbbs-be7df58794a73ccc29639c72806359aeed2d0a66.tar
pttbbs-be7df58794a73ccc29639c72806359aeed2d0a66.tar.gz
pttbbs-be7df58794a73ccc29639c72806359aeed2d0a66.tar.bz2
pttbbs-be7df58794a73ccc29639c72806359aeed2d0a66.tar.lz
pttbbs-be7df58794a73ccc29639c72806359aeed2d0a66.tar.xz
pttbbs-be7df58794a73ccc29639c72806359aeed2d0a66.tar.zst
pttbbs-be7df58794a73ccc29639c72806359aeed2d0a66.zip
#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
-rw-r--r--include/config.h4
-rw-r--r--mbbsd/mbbsd.c2
-rw-r--r--util/stock.perl2
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";