Make add require confirmation for unadvisable actions
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Nov 2011 18:40:21 +0000 (19:40 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 29 Dec 2011 10:47:06 +0000 (11:47 +0100)
commit6d98cd31341a4e6a21837ab61b031923fd864e3b
treed016fc5a22905f3b63ef1ba09007f3ca4639789f
parentd2057af7a23c202ffa28ad1f52c09c3b7c49c9d9
Make add require confirmation for unadvisable actions

Deleting a country in state STAT_SANCT, STAT_ACTIVE or STAT_GOD is
risky, because any references to this country become dangling, which
makes ef_verify() unhappy.  For a reason: we may well have code that
isn't prepared for dangling references, and breaks.

Replacing a country that is being used is risky, because it can get us
into weird states.  For instance, replacing a player by a visitor can
result in a visitor that owns stuff.
src/lib/commands/add.c