forked from github/server
Monster Email
kann jetzt über die config.xml eingestellt werden
This commit is contained in:
parent
d9e53573b5
commit
f89721ebec
|
@ -126,7 +126,15 @@ faction *get_or_create_monsters(void)
|
||||||
if (!f) {
|
if (!f) {
|
||||||
const race *rc = rc_find("dragon");
|
const race *rc = rc_find("dragon");
|
||||||
|
|
||||||
|
const char *email = get_param(global.parameters, "monster.email");
|
||||||
|
if (email)
|
||||||
|
{
|
||||||
|
f = addfaction(email, NULL, rc, NULL, 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
f = addfaction("noreply@eressea.de", NULL, rc, NULL, 0);
|
f = addfaction("noreply@eressea.de", NULL, rc, NULL, 0);
|
||||||
|
}
|
||||||
renumber_faction(f, 666);
|
renumber_faction(f, 666);
|
||||||
faction_setname(f, "Monster");
|
faction_setname(f, "Monster");
|
||||||
f->options = 0;
|
f->options = 0;
|
||||||
|
|
Loading…
Reference in New Issue