]> git.pond.sub.org Git - empserver/commitdiff
reject: Exempt bulletins on relation change with deity
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 31 Oct 2016 09:20:30 +0000 (10:20 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 18:09:21 +0000 (20:09 +0200)
Bulletins notifying on a relations change can be rejected just like a
telegram from the country initiating the change, except for one
inconsistency: telegrams from deities are exempt, but bulletins on a
relation change by a deity aren't.  Inconsistent since rejecting was
added in Merc Empire.

Change setrel() to treat relation change bulletins the same as tele()
treats telegrams.

Should not normally matter, because the reject command doesn't let you
reject deities.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/subs/rej.c

index 285d2b9f8060d9bc51286b1e179f5d57a42c947a..279ea36f2801160eaded34e76a19f8d11ba8e423 100644 (file)
@@ -88,7 +88,7 @@ setrel(natid us, natid them, int rel)
        pr("%s\n", addendum);
     mpr(us, "Diplomatic relations with %s %s to \"%s\".\n",
        cname(them), whichway, relates[rel]);
-    if (!(getrejects(us, themnp) & REJ_TELE))
+    if (mynp->nat_stat == STAT_GOD || !(getrejects(us, themnp) & REJ_TELE))
        mpr(them,
            "Country %s has %s their relations with you to \"%s\"!\n",
            prnat(mynp), whichway, relates[rel]);