diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-24 04:14:20 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-24 04:14:20 +0800 |
commit | b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67 (patch) | |
tree | f56efde1e7cab917738b51472fc83df42c2cbf69 /mbbsd/mbbsd.c | |
parent | 8e3a8b2bcaadc819bf4bfa5fd7d36d8701d2076c (diff) | |
download | pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.tar pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.tar.gz pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.tar.bz2 pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.tar.lz pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.tar.xz pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.tar.zst pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.zip |
reoragnize functions
mprints, pprints -> mouts
remove useless refresh, pressanykey(), sleep,...
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1833 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r-- | mbbsd/mbbsd.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 2b1db5a8..fe8ad16c 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -183,18 +183,6 @@ u_exit(char *mode) } void -system_abort() -{ - if (currmode) - u_exit("ABORT"); - - clear(); - refresh(); - fprintf(stdout, "謝謝光臨, 記得常來喔 !\n"); - exit(0); -} - -void abort_bbs(int sig) { if (currmode) @@ -473,14 +461,12 @@ multi_user_check() log_usies("KICK ", cuser.username); } else { if (search_ulistn(usernum, 3) != NULL) - system_abort(); /* Goodbye(); */ + abort_bbs(); /* Goodbye(); */ } } else { /* allow multiple guest user */ if (search_ulistn(usernum, 100) != NULL) { - outs("\n抱歉,目前已有太多 guest 在站上, 請用new註冊。\n"); - pressanykey(); - oflush(); + vmsg("\n抱歉,目前已有太多 guest 在站上, 請用new註冊。\n"); exit(1); } } |