diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-01-22 16:09:56 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-01-22 16:09:56 +0800 |
commit | 871ceb1fe146ef185d0047df6d2c17afda38e363 (patch) | |
tree | 4807fa2555f8ca938ce11641faaf07c4ee422ca8 /mbbsd | |
parent | 737556248c371c1a1f4302df7da2b0f3121ba7f2 (diff) | |
download | pttbbs-871ceb1fe146ef185d0047df6d2c17afda38e363.tar pttbbs-871ceb1fe146ef185d0047df6d2c17afda38e363.tar.gz pttbbs-871ceb1fe146ef185d0047df6d2c17afda38e363.tar.bz2 pttbbs-871ceb1fe146ef185d0047df6d2c17afda38e363.tar.lz pttbbs-871ceb1fe146ef185d0047df6d2c17afda38e363.tar.xz pttbbs-871ceb1fe146ef185d0047df6d2c17afda38e363.tar.zst pttbbs-871ceb1fe146ef185d0047df6d2c17afda38e363.zip |
damn, don't mess global and that unused parameter up
they'll be fixed properly in my svk branch (odd, svk pull cause
the whole system hanging -_-)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2419 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/edit.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c index 9efa6a27..76bd9c83 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -935,7 +935,7 @@ read_file(char *fpath) } void -write_header(FILE * fp, int ifuseanony) +write_header(FILE * fp, int ifuseanony) // FIXME unused { if (curredit & EDIT_MAIL || curredit & EDIT_LIST) { @@ -954,7 +954,8 @@ write_header(FILE * fp, int ifuseanony) memset(&postlog, 0, sizeof(postlog)); strlcpy(postlog.author, cuser.userid, sizeof(postlog.author)); - ifuseanony = 0; + if (curr_buf) + curr_buf->ifuseanony = 0; #ifdef HAVE_ANONYMOUS if (currbrdattr & BRD_ANONYMOUS) { int defanony = (currbrdattr & BRD_DEFAULTANONYMOUS); @@ -967,14 +968,16 @@ write_header(FILE * fp, int ifuseanony) if (!real_name[0] && defanony) { strlcpy(real_name, "Anonymous", sizeof(real_name)); strlcpy(postlog.author, real_name, sizeof(postlog.author)); - ifuseanony = 1; + if (curr_buf) + curr_buf->ifuseanony = 1; } else { if (!strcmp("r", real_name) || (!defanony && !real_name[0])) strlcpy(postlog.author, cuser.userid, sizeof(postlog.author)); else { snprintf(postlog.author, sizeof(postlog.author), "%s.", real_name); - ifuseanony = 1; + if (curr_buf) + curr_buf->ifuseanony = 1; } } } |