forked from github/server
small fixes
This commit is contained in:
parent
1597f54a5e
commit
f0e5e62e5b
|
@ -26,6 +26,7 @@
|
||||||
/* util includes */
|
/* util includes */
|
||||||
#include <util/base36.h>
|
#include <util/base36.h>
|
||||||
#include <util/goodies.h>
|
#include <util/goodies.h>
|
||||||
|
#include <util/sql.h>
|
||||||
|
|
||||||
/* libc includes */
|
/* libc includes */
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
@ -531,9 +532,11 @@ autoseed(newfaction ** players, int nsize)
|
||||||
nextf->lang, nextf->subscription));
|
nextf->lang, nextf->subscription));
|
||||||
f = u->faction;
|
f = u->faction;
|
||||||
f->alliance = nextf->allies;
|
f->alliance = nextf->allies;
|
||||||
|
log_printf("New faction (%s), %s at %s\n", itoa36(f->no),
|
||||||
|
f->email, regionname(r, NULL));
|
||||||
if (f->subscription) {
|
if (f->subscription) {
|
||||||
sql_print(("UPDATE subscriptions SET status='ACTIVE', faction='%s', lastturn=%d, password='%s', info='%s' WHERE id=%u;\n",
|
sql_print(("UPDATE subscriptions SET status='ACTIVE', faction='%s', lastturn=%d, password='%s' WHERE id=%u;\n",
|
||||||
factionid(f), f->lastorders, f->override, info, f->subscription));
|
factionid(f), f->lastorders, f->override, f->subscription));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* remove duplicate email addresses */
|
/* remove duplicate email addresses */
|
||||||
|
|
|
@ -973,11 +973,13 @@ fix_familiars(void)
|
||||||
/* this is a familiar */
|
/* this is a familiar */
|
||||||
unit * mage = get_familiar_mage(u);
|
unit * mage = get_familiar_mage(u);
|
||||||
if (mage==0) {
|
if (mage==0) {
|
||||||
log_error(("%s is a familiar with no mage for faction %s",
|
log_error(("%s is a %s familiar with no mage for faction %s",
|
||||||
unitname(u), factionid(u->faction)));
|
unitid(u), racename(0, u, u->race),
|
||||||
|
factionid(u->faction)));
|
||||||
} else if (!is_mage(mage)) {
|
} else if (!is_mage(mage)) {
|
||||||
log_error(("%s is a familiar , but %s is not a mage for faction %s",
|
log_error(("%s is a %s familiar, but %s is not a mage for faction %s",
|
||||||
unitname(u), unitname(mage), factionid(u->faction)));
|
unitid(u), racename(0, u, u->race), unitid(mage),
|
||||||
|
factionid(u->faction)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue