From 5c33a0c85498f8ddcf524b12d43dbebdb69fbccd Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 1 Apr 2008 04:50:16 +0000 Subject: - enable angel in BN_ANGELPRAY to do anonymous post [dirty hack] git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4056 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index e03ba94a..c3c536c5 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1042,6 +1042,15 @@ do_general(int isbid) edflags = EDITFLAG_ALLOWTITLE; edflags = solveEdFlagByBoard(currboard, edflags); + +#if defined(PLAY_ANGEL) && defined(BN_ANGELPRAY) + // XXX ´c·dªº code¡C + if (HasUserPerm(PERM_ANGEL) && strcmp(currboard, BN_ANGELPRAY) == 0) + { + currbrdattr |= BRD_ANONYMOUS; + currbrdattr |= BRD_DEFAULTANONYMOUS; + }; +#endif aborted = vedit2(fpath, YEA, &islocal, edflags); if (aborted == -1) { @@ -1127,11 +1136,9 @@ do_general(int isbid) if( currmode & MODE_SELECT ) append_record(currdirect, &postfile, sizeof(postfile)); if( !islocal && !(bp->brdattr & BRD_NOTRAN) ){ -#ifdef HAVE_ANONYMOUS if( ifuseanony ) outgo_post(&postfile, currboard, owner, "Anonymous."); else -#endif outgo_post(&postfile, currboard, cuser.userid, cuser.nickname); } brc_addlist(postfile.filename, postfile.modified); -- cgit v1.2.3