diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-31 13:30:33 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-31 13:30:33 +0800 |
commit | 3727016a2521ae1fa3f80296100df3294bbc90ce (patch) | |
tree | ec50445866392e7e0dcee86af6175f1a4bef13c0 /mbbsd/user.c | |
parent | 718716ca8b2651626439d8a4d0c5b52f7d388130 (diff) | |
download | pttbbs-3727016a2521ae1fa3f80296100df3294bbc90ce.tar pttbbs-3727016a2521ae1fa3f80296100df3294bbc90ce.tar.gz pttbbs-3727016a2521ae1fa3f80296100df3294bbc90ce.tar.bz2 pttbbs-3727016a2521ae1fa3f80296100df3294bbc90ce.tar.lz pttbbs-3727016a2521ae1fa3f80296100df3294bbc90ce.tar.xz pttbbs-3727016a2521ae1fa3f80296100df3294bbc90ce.tar.zst pttbbs-3727016a2521ae1fa3f80296100df3294bbc90ce.zip |
- change over18 calculation as standalone function, in order user changed birthday.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3893 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r-- | mbbsd/user.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index 83402dfe..9ad49259 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -1122,6 +1122,10 @@ uinfo_query(userec_t *u, int adminmode, int unum) passwd_update(unum, &x); if(perm_changed) sendalert(x.userid, ALERT_PWD_PERM); // force to reload perm + + // resolve_over18 only works for cuser + if (!adminmode) + resolve_over18(); } } |