forked from github/server
SQL-Dateien enthalten Aktivierung für neu ausgesetzte Parteien
This commit is contained in:
parent
d5daf1aa8e
commit
0577ad3399
|
@ -1200,12 +1200,12 @@ quit(void)
|
||||||
f->nunits, f->number, f->money);
|
f->nunits, f->number, f->money);
|
||||||
fprintf(sqlstream,
|
fprintf(sqlstream,
|
||||||
"UPDATE subscriptions SET lastturn=%d, password='%s', info='%s' "
|
"UPDATE subscriptions SET lastturn=%d, password='%s', info='%s' "
|
||||||
"WHERE game=%d AND faction='%s';",
|
"WHERE game=%d AND faction='%s';\n",
|
||||||
f->lastorders, f->override, info, GAME_ID, itoa36(f->no));
|
f->lastorders, f->override, info, GAME_ID, itoa36(f->no));
|
||||||
} else {
|
} else {
|
||||||
fprintf(sqlstream,
|
fprintf(sqlstream,
|
||||||
"UPDATE subscriptions SET lastturn=%d, password='%s' "
|
"UPDATE subscriptions SET status='ACTIVE', lastturn=%d, password='%s' "
|
||||||
"WHERE game=%d AND faction='%s';",
|
"WHERE game=%d AND faction='%s';\n",
|
||||||
f->lastorders, f->override, GAME_ID, itoa36(f->no));
|
f->lastorders, f->override, GAME_ID, itoa36(f->no));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2177,6 +2177,11 @@ readfaction(FILE * F)
|
||||||
}
|
}
|
||||||
f->lastorders = ri(F);
|
f->lastorders = ri(F);
|
||||||
f->age = ri(F);
|
f->age = ri(F);
|
||||||
|
if (sqlstream && f->age==0) {
|
||||||
|
fprintf(sqlstream,
|
||||||
|
"UPDATE users SET status='ACTIVE' where email='%s';\n",
|
||||||
|
f->email);
|
||||||
|
}
|
||||||
if (global.data_version < NEWRACE_VERSION) {
|
if (global.data_version < NEWRACE_VERSION) {
|
||||||
race_t rc = (char) ri(F);
|
race_t rc = (char) ri(F);
|
||||||
f->race = new_race[rc];
|
f->race = new_race[rc];
|
||||||
|
|
Loading…
Reference in New Issue