forked from github/server
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:
parent
357dd0ddca
commit
a6cc3216b6
|
@ -2829,10 +2829,10 @@ 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 (f->no > 0 && f->email && BAT) {
|
|
||||||
sprintf(buf, "%s/%s.sh", reportpath(), factionid(f));
|
sprintf(buf, "%s/%s.sh", reportpath(), factionid(f));
|
||||||
shfp = fopen(buf, "w");
|
shfp = fopen(buf, "w");
|
||||||
fprintf(shfp,"#!/bin/sh\n\nPATH=%s\n\n",MailitPath());
|
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);
|
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(f->age == 1) {
|
||||||
#if KEEP_UNZIPPED == 1
|
#if KEEP_UNZIPPED == 1
|
||||||
|
@ -2940,7 +2940,7 @@ 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);
|
||||||
|
|
|
@ -1553,6 +1553,7 @@ readfaction(FILE * F)
|
||||||
log_error(("Invalid email address for faction %s: %s\n", itoa36(f->no), email));
|
log_error(("Invalid email address for faction %s: %s\n", itoa36(f->no), email));
|
||||||
set_email(&f->email, "");
|
set_email(&f->email, "");
|
||||||
}
|
}
|
||||||
|
free(email);
|
||||||
rds(F, &f->passw);
|
rds(F, &f->passw);
|
||||||
if (global.data_version >= OVERRIDE_VERSION) {
|
if (global.data_version >= OVERRIDE_VERSION) {
|
||||||
rds(F, &f->override);
|
rds(F, &f->override);
|
||||||
|
|
Loading…
Reference in New Issue