summaryrefslogtreecommitdiff
path: root/src/login/login.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-01-14 23:38:31 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-01-14 23:38:31 +0000
commit7b5a33083c2b411e37f9412091937c18dbe92e29 (patch)
tree958618a37e721e0072a0191dce1cc027ccba07c3 /src/login/login.c
parent178e1269471a35507a1965fdb1548f052312a6a3 (diff)
downloadhercules-7b5a33083c2b411e37f9412091937c18dbe92e29.tar.gz
hercules-7b5a33083c2b411e37f9412091937c18dbe92e29.tar.bz2
hercules-7b5a33083c2b411e37f9412091937c18dbe92e29.tar.xz
hercules-7b5a33083c2b411e37f9412091937c18dbe92e29.zip
* Added 'birthdate' field to account data. For SQL apply upgrade_svn14672.sql to upgrade table `login`; for TXT no action is necessary, as it upgrades itself.
- Control panel developers are encouraged to enable players to modify this value, as it is required for new character deletion (2010-08-03aRagexeRE and later, not yet implemented). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14672 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login/login.c')
-rw-r--r--src/login/login.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login/login.c b/src/login/login.c
index e6bb13f19..6a8525930 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -912,6 +912,7 @@ int mmo_auth_new(const char* userid, const char* pass, const char sex, const cha
acc.expiration_time = ( login_config.start_limited_time != -1 ) ? time(NULL) + login_config.start_limited_time : 0;
safestrncpy(acc.lastlogin, "0000-00-00 00:00:00", sizeof(acc.lastlogin));
safestrncpy(acc.last_ip, last_ip, sizeof(acc.last_ip));
+ safestrncpy(acc.birthdate, "0000-00-00", sizeof(acc.birthdate));
if( !accounts->create(accounts, &acc) )
return 0;