From f0e5e62e5b529dc7ee9450ab078b9e2b58d921c3 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 16 Apr 2005 16:44:00 +0000 Subject: [PATCH] small fixes --- src/common/modules/autoseed.c | 9 ++++++--- src/eressea/korrektur.c | 10 ++++++---- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/common/modules/autoseed.c b/src/common/modules/autoseed.c index ba797f44a..a2430e0ee 100644 --- a/src/common/modules/autoseed.c +++ b/src/common/modules/autoseed.c @@ -26,6 +26,7 @@ /* util includes */ #include #include +#include /* libc includes */ #include @@ -530,10 +531,12 @@ autoseed(newfaction ** players, int nsize) u = addplayer(r, addfaction(nextf->email, nextf->password, nextf->race, nextf->lang, nextf->subscription)); 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) { - sql_print(("UPDATE subscriptions SET status='ACTIVE', faction='%s', lastturn=%d, password='%s', info='%s' WHERE id=%u;\n", - factionid(f), f->lastorders, f->override, info, f->subscription)); + sql_print(("UPDATE subscriptions SET status='ACTIVE', faction='%s', lastturn=%d, password='%s' WHERE id=%u;\n", + factionid(f), f->lastorders, f->override, f->subscription)); } /* remove duplicate email addresses */ diff --git a/src/eressea/korrektur.c b/src/eressea/korrektur.c index be3c80d0f..d8ce1bb90 100644 --- a/src/eressea/korrektur.c +++ b/src/eressea/korrektur.c @@ -973,11 +973,13 @@ fix_familiars(void) /* this is a familiar */ unit * mage = get_familiar_mage(u); if (mage==0) { - log_error(("%s is a familiar with no mage for faction %s", - unitname(u), factionid(u->faction))); + log_error(("%s is a %s familiar with no mage for faction %s", + unitid(u), racename(0, u, u->race), + factionid(u->faction))); } else if (!is_mage(mage)) { - log_error(("%s is a familiar , but %s is not a mage for faction %s", - unitname(u), unitname(mage), factionid(u->faction))); + log_error(("%s is a %s familiar, but %s is not a mage for faction %s", + unitid(u), racename(0, u, u->race), unitid(mage), + factionid(u->faction))); } } }