diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2014-03-25 11:30:28 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2014-03-25 11:30:28 +0800 |
commit | 4ba68ec1c69ed1f484a6e795a08a32244e743af4 (patch) | |
tree | a52a54797135a5d9e9071e98b4077388fbbab303 | |
parent | 4b4588269c2114cc4135b3a01d28293b1fa93008 (diff) | |
download | pttbbs-4ba68ec1c69ed1f484a6e795a08a32244e743af4.tar pttbbs-4ba68ec1c69ed1f484a6e795a08a32244e743af4.tar.gz pttbbs-4ba68ec1c69ed1f484a6e795a08a32244e743af4.tar.bz2 pttbbs-4ba68ec1c69ed1f484a6e795a08a32244e743af4.tar.lz pttbbs-4ba68ec1c69ed1f484a6e795a08a32244e743af4.tar.xz pttbbs-4ba68ec1c69ed1f484a6e795a08a32244e743af4.tar.zst pttbbs-4ba68ec1c69ed1f484a6e795a08a32244e743af4.zip |
Combine From line and provide URL in article.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5955 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 10 | ||||
-rw-r--r-- | pttbbs/mbbsd/edit.c | 3 |
2 files changed, 11 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index f69759e7..32e88fe4 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -1449,6 +1449,16 @@ do_post_article(int edflags) owner = cuser.userid; #endif +#ifdef QUERY_ARTICLE_URL + if (IsBoardForWeb(bp)) { + char buf[STRLEN]; + if (GetWebUrl(bp, &postfile, buf, sizeof(buf))) { + log_filef(fpath, LOG_CREAT, + "※ " URL_DISPLAYNAME ": %s\n", buf); + } + } +#endif + // ---- BEGIN OF MONEY VERIFICATION ---- // money verification diff --git a/pttbbs/mbbsd/edit.c b/pttbbs/mbbsd/edit.c index c31e77f9..59d689a3 100644 --- a/pttbbs/mbbsd/edit.c +++ b/pttbbs/mbbsd/edit.c @@ -1772,8 +1772,7 @@ addsimplesignature(FILE *fp, const char *host) { host = FROMHOST; strlcpy(temp, host, sizeof(temp)); fprintf(fp, - "\n--\n※ 發信站: " BBSNAME "(" MYHOSTNAME ") \n" - "◆ From: %s\n", host); + "\n--\n※ 發信站: " BBSNAME "(" MYHOSTNAME "), 來源: %s\n", host); } void |