From 871ceb1fe146ef185d0047df6d2c17afda38e363 Mon Sep 17 00:00:00 2001 From: victor Date: Sat, 22 Jan 2005 08:09:56 +0000 Subject: 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 --- mbbsd/edit.c | 11 +++++++---- 1 file 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; } } } -- cgit v1.2.3