diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-10-14 20:23:13 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-10-14 20:23:13 +0800 |
commit | 099b88d08080bbe4cbedafb15847ca4c1ee4d838 (patch) | |
tree | cd3bdd070c932ad4ea8a9ddeaafe49241387d94e | |
parent | 9ce8b9327539c330386a996b1f9c61b1e810a55c (diff) | |
download | pttbbs-099b88d08080bbe4cbedafb15847ca4c1ee4d838.tar pttbbs-099b88d08080bbe4cbedafb15847ca4c1ee4d838.tar.gz pttbbs-099b88d08080bbe4cbedafb15847ca4c1ee4d838.tar.bz2 pttbbs-099b88d08080bbe4cbedafb15847ca4c1ee4d838.tar.lz pttbbs-099b88d08080bbe4cbedafb15847ca4c1ee4d838.tar.xz pttbbs-099b88d08080bbe4cbedafb15847ca4c1ee4d838.tar.zst pttbbs-099b88d08080bbe4cbedafb15847ca4c1ee4d838.zip |
* we don't support 'post notify' anymore, so why keep the code?
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@4932 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/include/common.h | 2 | ||||
-rw-r--r-- | pttbbs/mbbsd/friend.c | 12 |
2 files changed, 6 insertions, 8 deletions
diff --git a/pttbbs/include/common.h b/pttbbs/include/common.h index e584cd54..fb508b44 100644 --- a/pttbbs/include/common.h +++ b/pttbbs/include/common.h @@ -182,7 +182,7 @@ #define FRIEND_OVERRIDE 0 #define FRIEND_REJECT 1 #define FRIEND_ALOHA 2 -#define FRIEND_POST 3 +// #define FRIEND_POST 3 // deprecated #define FRIEND_SPECIAL 4 #define FRIEND_CANVOTE 5 #define BOARD_WATER 6 diff --git a/pttbbs/mbbsd/friend.c b/pttbbs/mbbsd/friend.c index b19581ad..f76740a0 100644 --- a/pttbbs/mbbsd/friend.c +++ b/pttbbs/mbbsd/friend.c @@ -81,7 +81,7 @@ friend_add(const char *uident, int type, const char* des) /* Thor: avoid uident run away when get data */ strlcpy(t_uident, uident, sizeof(t_uident)); - if (type != FRIEND_ALOHA && type != FRIEND_POST){ + if (type != FRIEND_ALOHA){ if(!des) getdata(2, 0, friend_desc[type], buf, sizeof(buf), DOECHO); else @@ -463,7 +463,7 @@ friend_edit(int type) friend_special(); setfriendfile(fpath, type); - if (type == FRIEND_ALOHA || type == FRIEND_POST) { + if (type == FRIEND_ALOHA) { if (dashf(fpath)) { snprintf(genbuf, sizeof(genbuf), "%s.old", fpath); Copy(fpath, genbuf); @@ -567,13 +567,12 @@ friend_edit(int type) move(2, 0); outs("更新資料中..請稍候....."); refresh(); - if (type == FRIEND_ALOHA || type == FRIEND_POST) { + if (type == FRIEND_ALOHA) { snprintf(genbuf, sizeof(genbuf), "%s.old", fpath); if ((fp = fopen(genbuf, "r"))) { while (fgets(line, sizeof(line), fp)) { sscanf(line, "%" toSTR(IDLEN) "s", uident); - sethomefile(genbuf, uident, - type == FRIEND_ALOHA ? "aloha" : "postnotify"); + sethomefile(genbuf, uident, "aloha"); del_distinct(genbuf, cuser.userid, 0); } fclose(fp); @@ -582,8 +581,7 @@ friend_edit(int type) if ((fp = fopen(genbuf, "r"))) { while (fgets(line, 80, fp)) { sscanf(line, "%" toSTR(IDLEN) "s", uident); - sethomefile(genbuf, uident, - type == FRIEND_ALOHA ? "aloha" : "postnotify"); + sethomefile(genbuf, uident, "aloha"); add_distinct(genbuf, cuser.userid); } fclose(fp); |