forked from github/server
längre passworte
This commit is contained in:
parent
09c322582a
commit
6d6b0c5d14
2 changed files with 15 additions and 1 deletions
|
@ -71,6 +71,7 @@
|
||||||
|
|
||||||
/* util includes */
|
/* util includes */
|
||||||
#include <rand.h>
|
#include <rand.h>
|
||||||
|
#include <sql.h>
|
||||||
#include <base36.h>
|
#include <base36.h>
|
||||||
|
|
||||||
/* libc includes */
|
/* libc includes */
|
||||||
|
@ -558,6 +559,18 @@ typedef struct lostdata {
|
||||||
int ship;
|
int ship;
|
||||||
} lostdata;
|
} lostdata;
|
||||||
|
|
||||||
|
void
|
||||||
|
confirm_newbies(void)
|
||||||
|
{
|
||||||
|
const faction * f = factions;
|
||||||
|
while (f) {
|
||||||
|
if (f->age==0) {
|
||||||
|
fprintf(sqlstream, "UPDATE subscriptions SET status='ACTIVE', faction='%s' WHERE game=%d;\n", itoa36(f->no), GAME_ID);
|
||||||
|
}
|
||||||
|
f = f->next;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
@ -603,6 +616,7 @@ main(int argc, char *argv[])
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ((i=readgame(false))!=0) return i;
|
if ((i=readgame(false))!=0) return i;
|
||||||
|
confirm_newbies();
|
||||||
#ifdef BETA_CODE
|
#ifdef BETA_CODE
|
||||||
if (dungeonstyles) {
|
if (dungeonstyles) {
|
||||||
struct dungeon * d = dungeonstyles;
|
struct dungeon * d = dungeonstyles;
|
||||||
|
|
|
@ -307,7 +307,7 @@ read_newfactions(const char * filename)
|
||||||
if (F==NULL) return;
|
if (F==NULL) return;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
faction * f = factions;
|
faction * f = factions;
|
||||||
char race[20], email[64], lang[8], password[8];
|
char race[20], email[64], lang[8], password[16];
|
||||||
newfaction *nf;
|
newfaction *nf;
|
||||||
int bonus;
|
int bonus;
|
||||||
/* email;race;locale;startbonus */
|
/* email;race;locale;startbonus */
|
||||||
|
|
Loading…
Reference in a new issue