summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-22 13:19:38 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-22 13:19:38 +0800
commit6c921c6cf947ea0f9bd5292ac9248c5b068d8d3e (patch)
tree2f187662ac83708a5dfd804b7387cae16d220ae5 /mbbsd
parent2f64261db80c6d5c818ab5554eee1810462ddaa2 (diff)
downloadpttbbs-6c921c6cf947ea0f9bd5292ac9248c5b068d8d3e.tar
pttbbs-6c921c6cf947ea0f9bd5292ac9248c5b068d8d3e.tar.gz
pttbbs-6c921c6cf947ea0f9bd5292ac9248c5b068d8d3e.tar.bz2
pttbbs-6c921c6cf947ea0f9bd5292ac9248c5b068d8d3e.tar.lz
pttbbs-6c921c6cf947ea0f9bd5292ac9248c5b068d8d3e.tar.xz
pttbbs-6c921c6cf947ea0f9bd5292ac9248c5b068d8d3e.tar.zst
pttbbs-6c921c6cf947ea0f9bd5292ac9248c5b068d8d3e.zip
* add auto-forward in admin view
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4875 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/stuff.c4
-rw-r--r--mbbsd/user.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c
index a18e7989..787ef8dd 100644
--- a/mbbsd/stuff.c
+++ b/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/mbbsd/user.c b/mbbsd/user.c
index 05484af6..cee3106f 100644
--- a/mbbsd/user.c
+++ b/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++)
{