diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-01 12:50:16 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-01 12:50:16 +0800 |
commit | 5c33a0c85498f8ddcf524b12d43dbebdb69fbccd (patch) | |
tree | 0094cb5cd36e7b7db20ff9f02ed91b7546ebfc7d | |
parent | 38ac5c565c72463d14cbfc824f2cc84883504e6b (diff) | |
download | pttbbs-5c33a0c85498f8ddcf524b12d43dbebdb69fbccd.tar pttbbs-5c33a0c85498f8ddcf524b12d43dbebdb69fbccd.tar.gz pttbbs-5c33a0c85498f8ddcf524b12d43dbebdb69fbccd.tar.bz2 pttbbs-5c33a0c85498f8ddcf524b12d43dbebdb69fbccd.tar.lz pttbbs-5c33a0c85498f8ddcf524b12d43dbebdb69fbccd.tar.xz pttbbs-5c33a0c85498f8ddcf524b12d43dbebdb69fbccd.tar.zst pttbbs-5c33a0c85498f8ddcf524b12d43dbebdb69fbccd.zip |
- 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
-rw-r--r-- | mbbsd/bbs.c | 11 |
1 files changed, 9 insertions, 2 deletions
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); |