diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-19 03:14:26 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-19 03:14:26 +0800 |
commit | 0c5a863ffc1fba8867bed7e2b49f82afa12fcd7b (patch) | |
tree | d26f0416437a994193a5f237f2d87e0252f63f21 /mbbsd | |
parent | 129be11fe3496310fe27034977dc642e49af559c (diff) | |
download | pttbbs-0c5a863ffc1fba8867bed7e2b49f82afa12fcd7b.tar pttbbs-0c5a863ffc1fba8867bed7e2b49f82afa12fcd7b.tar.gz pttbbs-0c5a863ffc1fba8867bed7e2b49f82afa12fcd7b.tar.bz2 pttbbs-0c5a863ffc1fba8867bed7e2b49f82afa12fcd7b.tar.lz pttbbs-0c5a863ffc1fba8867bed7e2b49f82afa12fcd7b.tar.xz pttbbs-0c5a863ffc1fba8867bed7e2b49f82afa12fcd7b.tar.zst pttbbs-0c5a863ffc1fba8867bed7e2b49f82afa12fcd7b.zip |
1. fix compile error isnumber -> isdigit
2. let old sysop can use 'H' to coak
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3064 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/announce.c | 2 | ||||
-rw-r--r-- | mbbsd/talk.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c index b8c300bf..e420d6f4 100644 --- a/mbbsd/announce.c +++ b/mbbsd/announce.c @@ -1327,7 +1327,7 @@ void BlogMain(int num) getdata(16, 0, "請輸入該篇的雜湊值: ", hash, sizeof(hash), DOECHO); for( i = 0 ; hash[i] != 0 ; ++i ) /* 前面用 getdata() 保證有 \0 */ - if( !islower(hash[i]) && !isnumber(hash[i]) ) + if( !islower(hash[i]) && !isdigit(hash[i]) ) break; if( i != 32 ){ vmsg("輸入錯誤"); diff --git a/mbbsd/talk.c b/mbbsd/talk.c index dff22558..d803254f 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -2279,7 +2279,7 @@ userlist(void) break; case 'H': - if (HasUserPerm(PERM_SYSOP)) { + if (HasUserPerm(PERM_SYSOP)||HasUserPerm(PERM_OLDSYSOP)) { currutmp->userlevel ^= PERM_SYSOPHIDE; redrawall = redraw = 1; } |