diff options
-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++) { |