From 0c5a863ffc1fba8867bed7e2b49f82afa12fcd7b Mon Sep 17 00:00:00 2001 From: ptt Date: Thu, 18 Aug 2005 19:14:26 +0000 Subject: 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 --- mbbsd/announce.c | 2 +- mbbsd/talk.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'mbbsd') 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; } -- cgit v1.2.3