summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-26 20:26:33 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-26 20:26:33 +0800
commita3906f91f849bd46d75725e6e981ff0fe00712d1 (patch)
treed7fdcbdc9de71d8a9b96c7f16193f8d2e9e861f5
parent5ea5c1098e2be8691ac64a69e4271a09dbefabe3 (diff)
downloadpttbbs-a3906f91f849bd46d75725e6e981ff0fe00712d1.tar
pttbbs-a3906f91f849bd46d75725e6e981ff0fe00712d1.tar.gz
pttbbs-a3906f91f849bd46d75725e6e981ff0fe00712d1.tar.bz2
pttbbs-a3906f91f849bd46d75725e6e981ff0fe00712d1.tar.lz
pttbbs-a3906f91f849bd46d75725e6e981ff0fe00712d1.tar.xz
pttbbs-a3906f91f849bd46d75725e6e981ff0fe00712d1.tar.zst
pttbbs-a3906f91f849bd46d75725e6e981ff0fe00712d1.zip
* initialize numlogindays as '1' for new register users
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4883 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/register.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c
index 3af845f5..c521a8cc 100644
--- a/mbbsd/register.c
+++ b/mbbsd/register.c
@@ -709,6 +709,7 @@ new_register(void)
newuser.uflag = UF_BRDSORT | UF_ADBANNER;
newuser.firstlogin = newuser.lastlogin = now;
newuser.pager = PAGER_ON;
+ newuser.numlogindays = 1;
strlcpy(newuser.lasthost, fromhost, sizeof(newuser.lasthost));
#ifdef UF_ADBANNER_USONG