diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-03-12 13:09:08 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-03-12 13:09:08 +0800 |
commit | 8d8887e355480b30629b8576aa5998b7eb3d9288 (patch) | |
tree | 2836f86b977a933dcaa750da6a339058319442f7 /mbbsd/admin.c | |
parent | a6b3fe4ff21bf66ac268bc7487cb41dc74526d67 (diff) | |
download | pttbbs-8d8887e355480b30629b8576aa5998b7eb3d9288.tar pttbbs-8d8887e355480b30629b8576aa5998b7eb3d9288.tar.gz pttbbs-8d8887e355480b30629b8576aa5998b7eb3d9288.tar.bz2 pttbbs-8d8887e355480b30629b8576aa5998b7eb3d9288.tar.lz pttbbs-8d8887e355480b30629b8576aa5998b7eb3d9288.tar.xz pttbbs-8d8887e355480b30629b8576aa5998b7eb3d9288.tar.zst pttbbs-8d8887e355480b30629b8576aa5998b7eb3d9288.zip |
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1586 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r-- | mbbsd/admin.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c index b476d787..45f478d0 100644 --- a/mbbsd/admin.c +++ b/mbbsd/admin.c @@ -1,6 +1,34 @@ /* $Id$ */ #include "bbs.h" +/* 進站水球宣傳 */ + +int +m_loginmsg() +{ + char msg[100]; + move(21,0); + clrtobot(); + if(SHM->loginmsg.pid && SHM->loginmsg.pid != currutmp->pid) + { + prints("目前已經有以下的 進站水球設定請先協調好再設定.."); + getmessage(SHM->loginmsg); + } + getdata(22, 0, + "進站水球:本站活動,不干擾使用者為限,設定者離站自動取消,確定要設?(y/N)", + msg, 3, LCECHO); + + if(msg[0]=='y' && + + getdata_str(23, 0, "設定進站水球:", msg, 56, DOECHO, SHM->loginmsg.last_call_in)) + { + SHM->loginmsg.pid=currutmp->pid; /*站長不多 就不管race condition */ + strcmp(SHM->loginmsg.last_call_in, msg); + strcmp(SHM->loginmsg.userid, cuser.userid); + } + return 0; +} + /* 使用者管理 */ int m_user() |