summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-05-27 22:08:15 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-05-27 22:08:15 +0800
commita8ac9d593f193d06a2dff50bb91f81bfee6b9a94 (patch)
tree3b9304cd7fd3780facdd57afb1b9d6e49c843049 /mbbsd/mbbsd.c
parent1eb01fd5c3a2c09a3c9fb897e00b309c8bb3ff5f (diff)
downloadpttbbs-a8ac9d593f193d06a2dff50bb91f81bfee6b9a94.tar
pttbbs-a8ac9d593f193d06a2dff50bb91f81bfee6b9a94.tar.gz
pttbbs-a8ac9d593f193d06a2dff50bb91f81bfee6b9a94.tar.bz2
pttbbs-a8ac9d593f193d06a2dff50bb91f81bfee6b9a94.tar.lz
pttbbs-a8ac9d593f193d06a2dff50bb91f81bfee6b9a94.tar.xz
pttbbs-a8ac9d593f193d06a2dff50bb91f81bfee6b9a94.tar.zst
pttbbs-a8ac9d593f193d06a2dff50bb91f81bfee6b9a94.zip
* add shutdown flag
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3516 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c10
1 files changed, 7 insertions, 3 deletions
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)