monsterreport reactivated.

This commit is contained in:
Enno Rehling 2005-06-19 20:51:08 +00:00
parent 429b7c95c5
commit bf1dba5814
1 changed files with 84 additions and 86 deletions

View File

@ -2741,7 +2741,7 @@ write_reports(faction * f, time_t ltime)
fprintf(stdout, "Reports for %s: DONE\n", factionname(f)); fprintf(stdout, "Reports for %s: DONE\n", factionname(f));
if (!gotit) { if (!gotit) {
log_error(("No report for faction %s!\n", factionid(f))); log_warning(("No report for faction %s!\n", factionid(f)));
} }
freelist(addresses); freelist(addresses);
@ -2784,7 +2784,6 @@ reports(void)
BAT = openbatch(); BAT = openbatch();
for (f = factions; f; f = f->next) { for (f = factions; f; f = f->next) {
if (f->no != MONSTER_FACTION) {
int error = write_reports(f, ltime); int error = write_reports(f, ltime);
if (error) retval = error; if (error) retval = error;
if (!nosh && f->email && BAT) { if (!nosh && f->email && BAT) {
@ -2875,7 +2874,6 @@ reports(void)
fclose(shfp); fclose(shfp);
} }
} }
}
str = get_param(global.parameters, "globalreport"); str = get_param(global.parameters, "globalreport");
if (str!=NULL) { if (str!=NULL) {
sprintf(buf, "%s/%s.%u.cr", reportpath(), str, turn); sprintf(buf, "%s/%s.%u.cr", reportpath(), str, turn);