From a8ac9d593f193d06a2dff50bb91f81bfee6b9a94 Mon Sep 17 00:00:00 2001 From: kcwu Date: Sun, 27 May 2007 14:08:15 +0000 Subject: * add shutdown flag git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3516 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 754e5388..487641fb 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -182,9 +182,13 @@ u_exit(const char *mode) cuser.pager = currutmp->pager; memcpy(cuser.mind, currutmp->mind, 4); setutmpbid(0); - if (!(HasUserPerm(PERM_SYSOP) && HasUserPerm(PERM_SYSOPHIDE)) && - !currutmp->invisible) - do_aloha("<<下站通知>> -- 我走囉!"); + + if (!SHM->GV2.e.shutdown) { + if (!(HasUserPerm(PERM_SYSOP) && HasUserPerm(PERM_SYSOPHIDE)) && + !currutmp->invisible) + do_aloha("<<下站通知>> -- 我走囉!"); + } + if ((cuser.uflag != enter_uflag) || dirty || diff) { if (!diff && cuser.numlogins) -- cgit v1.2.3