diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-09-22 13:19:38 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-09-22 13:19:38 +0800 |
commit | 5c8bed69bc389127726b475089353f86ca7c936c (patch) | |
tree | 0b85246c6ef8ee5946045dc804165debfe42c9e8 | |
parent | 9d3ac5517c97868cd507f4182432fcfd6feb3cfa (diff) | |
download | pttbbs-5c8bed69bc389127726b475089353f86ca7c936c.tar pttbbs-5c8bed69bc389127726b475089353f86ca7c936c.tar.gz pttbbs-5c8bed69bc389127726b475089353f86ca7c936c.tar.bz2 pttbbs-5c8bed69bc389127726b475089353f86ca7c936c.tar.lz pttbbs-5c8bed69bc389127726b475089353f86ca7c936c.tar.xz pttbbs-5c8bed69bc389127726b475089353f86ca7c936c.tar.zst pttbbs-5c8bed69bc389127726b475089353f86ca7c936c.zip |
* add auto-forward in admin view
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@4875 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/stuff.c | 4 | ||||
-rw-r--r-- | pttbbs/mbbsd/user.c | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/pttbbs/mbbsd/stuff.c b/pttbbs/mbbsd/stuff.c index a18e7989..787ef8dd 100644 --- a/pttbbs/mbbsd/stuff.c +++ b/pttbbs/mbbsd/stuff.c @@ -15,9 +15,7 @@ static const char * const str_dotdir = FN_DIR; void setuserfile(char *buf, const char *fname) { - assert(is_validuserid(cuser.userid)); - assert(fname[0]); - snprintf(buf, PATHLEN, str_home_file, cuser.userid[0], cuser.userid, fname); + sethomefile(buf, cuser.userid, fname); } void diff --git a/pttbbs/mbbsd/user.c b/pttbbs/mbbsd/user.c index 05484af6..cee3106f 100644 --- a/pttbbs/mbbsd/user.c +++ b/pttbbs/mbbsd/user.c @@ -248,7 +248,7 @@ user_display(const userec_t * u, int adminmode) int i; static const char *uflag_desc[] = { "拒收外信", - "最愛自動加新板", + "新板加最愛", "外藉", "居留權", }; @@ -258,9 +258,13 @@ user_display(const userec_t * u, int adminmode) UF_FOREIGN, UF_LIVERIGHT, }; + char buf[PATHLEN]; prints("\n其它資訊: [%s]", (u->userlevel & PERM_LOGINOK) ? "已註冊" : "未註冊"); + sethomefile(buf, u->userid, ".forward"); + if (dashs(buf) > 0) + outs("[自動轉寄]"); for (i = 0; i < sizeof(uflag_mask)/sizeof(uflag_mask[0]); i++) { |