Per default keinen Report mehr für die Monster (kann per write_report() aus

lua gemacht werden, wenn doch gewünscht).
This commit is contained in:
Enno Rehling 2005-04-30 13:21:20 +00:00
parent 357dd0ddca
commit a6cc3216b6
2 changed files with 110 additions and 109 deletions

View File

@ -2829,10 +2829,10 @@ reports(void)
BAT = openbatch();
for (f = factions; f; f = f->next) {
if (f->no != MONSTER_FACTION) {
int error = write_reports(f, ltime);
if (error) retval = error;
if (f->no > 0 && f->email && BAT) {
if (!nosh && f->email && BAT) {
sprintf(buf, "%s/%s.sh", reportpath(), factionid(f));
shfp = fopen(buf, "w");
fprintf(shfp,"#!/bin/sh\n\nPATH=%s\n\n",MailitPath());
@ -2844,7 +2844,7 @@ reports(void)
fprintf(BAT, "\n\ndate;echo %s\n", f->email);
if (f->no > 0 && f->options & REPORT_ZIP) {
if (f->options & REPORT_ZIP) {
if(f->age == 1) {
#if KEEP_UNZIPPED == 1
@ -2940,7 +2940,7 @@ reports(void)
fclose(shfp);
}
}
}
str = get_param(global.parameters, "globalreport");
if (str!=NULL) {
sprintf(buf, "%s/%s.%u.cr", reportpath(), str, turn);

View File

@ -1553,6 +1553,7 @@ readfaction(FILE * F)
log_error(("Invalid email address for faction %s: %s\n", itoa36(f->no), email));
set_email(&f->email, "");
}
free(email);
rds(F, &f->passw);
if (global.data_version >= OVERRIDE_VERSION) {
rds(F, &f->override);