diff -Nurd tree-001-nao//include/config.h tree-002-not-a-public-server//include/config.h --- tree-001-nao//include/config.h 2012-03-28 22:32:38.000000000 -0400 +++ tree-002-not-a-public-server//include/config.h 2012-03-28 22:47:59.000000000 -0400 @@ -160,6 +160,8 @@ # endif #endif +/* #define PUBLIC_SERVER */ /* Public servers don't support explore mode */ + #define LOGFILE "logfile" /* larger file for debugging purposes */ #define NEWS "news" /* the file containing the latest hack news */ #define PANICLOG "paniclog" /* log of panic and impossible events */ @@ -378,9 +380,16 @@ #define AUTOPICKUP_EXCEPTIONS /* exceptions to autopickup */ #define DUMP_LOG /* Dump game end information to a file */ +#ifdef PUBLIC_SERVER #define DUMP_FN "/dgldir/userdata/%N/%n/dumplog/%t.nh343.txt" /* Fixed dumpfile name, if you want * to prevent definition by users */ #define DUMPMSGS 20 /* Number of latest messages in the dump file */ +#define SIMPLE_MAIL /* dgamelaunch simple mail */ +#define SERVER_ADMIN_MSG "admin_msg" +#define LIVELOGFILE "livelog" +/* from Sporkhack */ +#define WHEREIS_FILE /* Write out player's current location to player.whereis */ +#endif #define SHOW_BORN /* extinct & showborn -patch */ #define SHOW_EXTINCT @@ -389,14 +398,8 @@ #define HPMON /* hpmon -patch */ -#define SIMPLE_MAIL /* dgamelaunch simple mail */ - #define PARANOID /* paranoid quit &c */ -#define SERVER_ADMIN_MSG "admin_msg" - -#define LIVELOGFILE "livelog" - #define XLOGFILE "xlogfile" /* even larger logfile */ /* #define REALTIME_ON_BOTL */ /* Show elapsed time on bottom line. Note: * this breaks savefile compatibility. */ @@ -417,8 +420,6 @@ #define RECORD_ALIGN0 /* Record initial alignment in logfile */ #endif -/* from Sporkhack */ -#define WHEREIS_FILE /* Write out player's current location to player.whereis */ #define USER_DUNGEONCOLOR diff -Nurd tree-001-nao//src/cmd.c tree-002-not-a-public-server//src/cmd.c --- tree-001-nao//src/cmd.c 2012-03-28 22:32:38.000000000 -0400 +++ tree-002-not-a-public-server//src/cmd.c 2012-03-28 22:33:06.000000000 -0400 @@ -504,8 +504,10 @@ char buf[BUFSZ]; int really_xplor = FALSE; #endif +#ifdef PUBLIC_SERVER pline("Explore mode is for local games, not public servers."); return 0; +#endif if(!discover && !wizard) { pline("Beware! From explore mode there will be no return to normal game.");