längre passworte

This commit is contained in:
Enno Rehling 2002-04-16 17:54:05 +00:00
parent 09c322582a
commit 6d6b0c5d14
2 changed files with 15 additions and 1 deletions

View File

@ -71,6 +71,7 @@
/* util includes */
#include <rand.h>
#include <sql.h>
#include <base36.h>
/* libc includes */
@ -558,6 +559,18 @@ typedef struct lostdata {
int ship;
} 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
main(int argc, char *argv[])
{
@ -603,6 +616,7 @@ main(int argc, char *argv[])
#endif
if ((i=readgame(false))!=0) return i;
confirm_newbies();
#ifdef BETA_CODE
if (dungeonstyles) {
struct dungeon * d = dungeonstyles;

View File

@ -307,7 +307,7 @@ read_newfactions(const char * filename)
if (F==NULL) return;
for (;;) {
faction * f = factions;
char race[20], email[64], lang[8], password[8];
char race[20], email[64], lang[8], password[16];
newfaction *nf;
int bonus;
/* email;race;locale;startbonus */