summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-08 08:42:37 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-08 08:42:37 +0800
commit274a2fd22fa13e8b65bcdd488c8a40db595410f2 (patch)
tree2f0cc36b334b4ce6263fd56906c2abfc61b3c01e /mbbsd
parentc6f6c62304145bfc6e3bd735fb73f625dbffc7c5 (diff)
downloadpttbbs-274a2fd22fa13e8b65bcdd488c8a40db595410f2.tar
pttbbs-274a2fd22fa13e8b65bcdd488c8a40db595410f2.tar.gz
pttbbs-274a2fd22fa13e8b65bcdd488c8a40db595410f2.tar.bz2
pttbbs-274a2fd22fa13e8b65bcdd488c8a40db595410f2.tar.lz
pttbbs-274a2fd22fa13e8b65bcdd488c8a40db595410f2.tar.xz
pttbbs-274a2fd22fa13e8b65bcdd488c8a40db595410f2.tar.zst
pttbbs-274a2fd22fa13e8b65bcdd488c8a40db595410f2.zip
dirty hack to the losing fav
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1722 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/fav.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mbbsd/fav.c b/mbbsd/fav.c
index 53a5ccb4..54f7a1b3 100644
--- a/mbbsd/fav.c
+++ b/mbbsd/fav.c
@@ -455,6 +455,11 @@ int fav_save(void)
return -1;
write_favrec(fd, fp);
close(fd);
+ if (dashs(buf) == 4) {
+ char buf3[128];
+ sprintf(buf3, "%s %s\n", Ctime(), cuser->userid);
+ log_file(BBSHOME"/dirty.hack", buf3, 1);
+ }
Rename(buf, buf2);
return 0;
}