From 8d8887e355480b30629b8576aa5998b7eb3d9288 Mon Sep 17 00:00:00 2001 From: ptt Date: Fri, 12 Mar 2004 05:09:08 +0000 Subject: git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1586 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/admin.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'mbbsd/admin.c') 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() -- cgit v1.2.3