empserver/include
Markus Armbruster f9fc80e2de Revise nation status command permissions
Create new command capability NONVIS.  Give it to players in any state
except visitors (and STAT_UNUSED, but those must not exist).  This
makes it possible to have commands available to anyone but visitors.

Command change fails when the player is a visitor.  Simply make it
unavailable instead, by requiring NONVIS.

Make read unavailable to visitors, because it's useless: visitors
can't receive telegrams (typed_wu() fails).

Make census, commodity and sinfra unavailable to visitors.  Visitors
don't normally have sectors.

Make map and nmap unavailable to visitors.  Visitors don't have sectors,
so their maps are always empty.

Make them unavailable to new players (between add and newcap) and
players in sanctuary, too.  This is consistent with all the other
commands to examine the environment.  It also prevents people from
trying multiple unbroken countries in a blitz to find the one with the
nicest vicinity.

Make resource available to new players, for consistency with census
and commodity.

Make country, echo and financial available to anyone.
2012-02-25 11:24:32 +01:00
..
budg.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
com.h Clean up c_permit values of deity commands 2012-02-25 11:22:36 +01:00
combat.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
commands.h Clean up superfluous include of nsc.h in prototypes.h 2011-04-14 19:46:05 +02:00
commodity.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
damage.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
distribute.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
econfig-spec.h Clarify buytax econfig doc string 2012-02-21 18:11:23 +01:00
empio.h Fix idle timeout during execute 2012-02-21 18:10:52 +01:00
empobj.h Verify table uid sanity more tightly 2011-06-25 16:54:29 +02:00
empthread.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
file.h Split ef_verify() into ef_verify_config(), ef_verify_state() 2011-07-10 21:17:01 +02:00
game.h Update known contributors comments 2011-04-14 20:21:23 +02:00
ioqueue.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
item.h Better document how .config must match compiled-in UIDs 2011-06-25 16:45:29 +02:00
journal.h New journal event "output" 2011-04-14 20:21:21 +02:00
land.h Update known contributors comments 2011-04-14 20:21:23 +02:00
loan.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
lost.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
lwp.h Update known contributors comments 2011-04-14 20:21:23 +02:00
map.h Clean up move_ground()'s parsing of DIR_MAP 2011-04-14 20:21:23 +02:00
match.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
misc.h Update known contributors comments 2011-04-14 20:21:23 +02:00
mission.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
nat.h Move setting nat_cnam, nat_pnam into nat_reset() 2011-12-29 11:47:06 +01:00
news.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
nsc.h A few comment fixes for nsc.[ch] file.[ch] 2011-06-25 16:45:31 +02:00
nuke.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
optlist.h Update known contributors comments 2011-04-14 20:21:23 +02:00
path.h Remove p_mode, use MOB_FLY and MOB_SAIL instead 2011-04-12 21:51:32 +02:00
plague.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
plane.h Update known contributors comments 2011-04-14 20:21:23 +02:00
player.h Revise nation status command permissions 2012-02-25 11:24:32 +01:00
power.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
product.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
proto.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
prototypes.h New server option -F to force start even when state looks bad 2011-07-10 21:17:01 +02:00
queue.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
retreat.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
sect.h Better document how .config must match compiled-in UIDs 2011-06-25 16:45:29 +02:00
server.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
service.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
ship.h Update known contributors comments 2011-04-14 20:21:23 +02:00
tel.h Factor mailbox_create() out of nat_reset() and files.c 2011-12-29 11:47:07 +01:00
trade.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
treaty.h Update known contributors comments 2011-04-14 20:21:23 +02:00
types.h Update known contributors comments 2011-04-14 20:21:23 +02:00
unit.h Fix navigate and march to find paths longer than 7 sectors again 2011-07-12 07:12:57 +02:00
update.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
version.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
xdump.h Update known contributors comments 2011-04-14 20:21:23 +02:00
xy.h Move xysize_range(), xydist_range() to xy.c and xy.h 2011-04-14 20:21:21 +02:00