From f3156a5477c4ca44d6d64b9c5e4897e28ea936cf Mon Sep 17 00:00:00 2001 From: in2 Date: Tue, 14 Jun 2005 13:15:00 +0000 Subject: better readability. real => adminmode, HAS_PERM() => HasUserPerm(), HasPerm() => HasBoardPerm(). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2840 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mbbsd/mbbsd.c') diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 00d470f1..6f4faecc 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -130,7 +130,7 @@ log_usies(const char *mode, const char *mesg) Cdate(&now), mode, cuser.userid, mesg); /* 追蹤使用者 */ - if (HAS_PERM(PERM_LOGUSER)) + if (HasUserPerm(PERM_LOGUSER)) log_user("logout"); } @@ -177,7 +177,7 @@ u_exit(const char *mode) cuser.pager = currutmp->pager; memcpy(cuser.mind, currutmp->mind, 4); setutmpbid(0); - if (!(HAS_PERM(PERM_SYSOP) && HAS_PERM(PERM_SYSOPHIDE)) && + if (!(HasUserPerm(PERM_SYSOP) && HasUserPerm(PERM_SYSOPHIDE)) && !currutmp->invisible) do_aloha("<<下站通知>> -- 我走囉!"); @@ -480,7 +480,7 @@ multi_user_check(void) register pid_t pid; char genbuf[3]; - if (HAS_PERM(PERM_SYSOP)) + if (HasUserPerm(PERM_SYSOP)) return; /* don't check sysops */ if (cuser.userlevel) { @@ -980,7 +980,7 @@ user_login(void) SHM->max_time = now; } - if (!(HAS_PERM(PERM_SYSOP) && HAS_PERM(PERM_SYSOPHIDE)) && + if (!(HasUserPerm(PERM_SYSOP) && HasUserPerm(PERM_SYSOPHIDE)) && !currutmp->invisible) do_aloha("<<上站通知>> -- 我來啦!"); -- cgit v1.2.3