Changeset 459
- Timestamp:
- 08/16/06 01:02:54 (2 years ago)
- Files:
-
- 1.7.7/CHANGES.177 (modified) (1 diff)
- 1.7.7/I18N (modified) (1 diff)
- 1.7.7/MANIFEST (modified) (1 diff)
- 1.7.7/Patchlevel (modified) (1 diff)
- 1.7.7/game/aliascnf.dst (modified) (1 diff)
- 1.7.7/game/mushcnf.dst (modified) (5 diffs)
- 1.7.7/game/restart (modified) (1 diff)
- 1.7.7/game/restrictcnf.dst (modified) (1 diff)
- 1.7.7/game/txt/hlp/penncmd.hlp (modified) (4 diffs)
- 1.7.7/game/txt/hlp/penncode.hlp (modified) (1 diff)
- 1.7.7/game/txt/hlp/pennconf.hlp (modified) (1 diff)
- 1.7.7/game/txt/hlp/penntop.hlp (modified) (1 diff)
- 1.7.7/game/txt/hlp/pennv177.hlp (modified) (2 diffs)
- 1.7.7/game/txt/hlp/pennvOLD.hlp (modified) (1 diff)
- 1.7.7/hdrs/atr_tab.h (modified) (3 diffs)
- 1.7.7/hdrs/conf.h (modified) (4 diffs)
- 1.7.7/hdrs/dbdefs.h (modified) (5 diffs)
- 1.7.7/hdrs/extchat.h (modified) (2 diffs)
- 1.7.7/hdrs/externs.h (modified) (4 diffs)
- 1.7.7/hdrs/extmail.h (modified) (2 diffs)
- 1.7.7/hdrs/game.h (modified) (1 diff)
- 1.7.7/hdrs/htab.h (modified) (1 diff)
- 1.7.7/hdrs/malias.h (modified) (2 diffs)
- 1.7.7/hdrs/mushtype.h (modified) (2 diffs)
- 1.7.7/hdrs/oldflags.h (modified) (2 diffs)
- 1.7.7/hdrs/version.h (modified) (1 diff)
- 1.7.7/options.h.dist (modified) (4 diffs)
- 1.7.7/src/Makefile.SH (modified) (78 diffs)
- 1.7.7/src/access.c (modified) (1 diff)
- 1.7.7/src/attrib.c (modified) (5 diffs)
- 1.7.7/src/boolexp.c (modified) (8 diffs)
- 1.7.7/src/bsd.c (modified) (21 diffs)
- 1.7.7/src/cmds.c (modified) (7 diffs)
- 1.7.7/src/command.c (modified) (11 diffs)
- 1.7.7/src/conf.c (modified) (16 diffs)
- 1.7.7/src/cque.c (modified) (1 diff)
- 1.7.7/src/db.c (modified) (5 diffs)
- 1.7.7/src/destroy.c (modified) (3 diffs)
- 1.7.7/src/extchat.c (modified) (4 diffs)
- 1.7.7/src/extmail.c (modified) (10 diffs)
- 1.7.7/src/flags.c (modified) (3 diffs)
- 1.7.7/src/function.c (modified) (13 diffs)
- 1.7.7/src/fundb.c (modified) (22 diffs)
- 1.7.7/src/funlist.c (modified) (8 diffs)
- 1.7.7/src/funufun.c (modified) (1 diff)
- 1.7.7/src/game.c (modified) (11 diffs)
- 1.7.7/src/help.c (modified) (2 diffs)
- 1.7.7/src/htab.c (modified) (3 diffs)
- 1.7.7/src/ident.c (modified) (1 diff)
- 1.7.7/src/lock.c (modified) (1 diff)
- 1.7.7/src/log.c (modified) (12 diffs)
- 1.7.7/src/look.c (modified) (2 diffs)
- 1.7.7/src/malias.c (modified) (4 diffs)
- 1.7.7/src/memcheck.c (modified) (6 diffs)
- 1.7.7/src/notify.c (modified) (1 diff)
- 1.7.7/src/parse.c (modified) (2 diffs)
- 1.7.7/src/player.c (modified) (2 diffs)
- 1.7.7/src/predicat.c (modified) (8 diffs)
- 1.7.7/src/ptab.c (modified) (2 diffs)
- 1.7.7/src/set.c (modified) (1 diff)
- 1.7.7/src/speech.c (modified) (2 diffs)
- 1.7.7/src/strutil.c (modified) (2 diffs)
- 1.7.7/src/timer.c (modified) (7 diffs)
- 1.7.7/src/utils.c (modified) (4 diffs)
- 1.7.7/src/wild.c (modified) (3 diffs)
- 1.7.7/src/wiz.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
1.7.7/CHANGES.177
r457 r459 18 18 19 19 ========================================================================== 20 21 Version 1.7.7 patchlevel 30 May 6, 2004 22 23 Major changes: 24 * CHAT_SYSTEM option removed. If you don't want to use the chat system, 25 use restrict.cnf to disable @channel, @chat, etc. 26 * USE_MAILER and MAIL_ALIAS options removed. If you don't want to 27 use the @mail or @malias systems, use restrict.cnf to disable 28 the associated commands. 29 * QUOTA, EMPTY_ATTRS, and FUNCTION_SIDE_EFFECTS options are now 30 runtime options, instead of compile-time. 31 * SINGLE_LOGFILE option removed, and log filenames are now 32 runtime options. You may now give the same name to 33 multiple log files and get a more fine-grained version of the 34 same effect. Based on ideas by Vadiv@M*U*S*H. 35 Minor changes: 36 * New IP^ and HOSTNAME^ tests for boolexps. Suggested by Luke@M*U*S*H. 37 * ALLOW_NOSUBJECT option removed. We always use the beginning of the 38 message as the subject if one is not provided. 39 * JURY_OK and UNINSPECTED_FLAG options removed. Use @flag to add 40 flags if you need them. ONLINE_REG and VACATION_FLAG options 41 removed (default to always defined, add or remove with @flag as 42 desired). 43 * MEM_CHECK option removed from options.h; it is now a runtime 44 option in mush.cnf. 45 * @function/restrict can be applied to softcoded @functions, and 46 @function/add can accept a list of restrictions as a fifth argument. 47 Patch by Luke@M*U*S*H. 48 * log_walls run-time configuration option removed. Use the 49 logargs option in restrict.cnf instead. 50 Fixes: 51 * Crash bug in anonymous attributes fixed. Report by Intrevis@M*U*S*H. 52 * lplayers() was broken. Report by T'orA@M*U*S*H. 53 * Failing to create a player by providing a bad password now gives 54 a better error. Suggested by [NJG]. 55 * Setting/clearing a chan title on a notitles channel works, but 56 reminds you that titles are off. Suggested by Dan@InNomine. 57 * haspower_restricted removed from mushcnf.dst to stop spurious 58 warning on startup. Report by Nymeria@M*U*S*H. 59 20 60 21 61 Version 1.7.7 patchlevel 29 April 28, 2004 1.7.7/I18N
r399 r459 29 29 30 30 Files with translated messages are located at 31 http:// ftp.pennmush.org/Source/translations/. Get the one for your31 http://download.pennmush.org/Source/translations/. Get the one for your 32 32 patchlevel and language, put it in your pennmush/po/ directory. 33 33 1.7.7/MANIFEST
r457 r459 34 34 hdrs/malias.h 35 35 hdrs/match.h 36 hdrs/memcheck.h37 36 hdrs/mushdb.h 38 37 hdrs/mushtype.h 1.7.7/Patchlevel
r457 r459 1 1 Do not edit this file. It is maintained by the official PennMUSH patches. 2 This is PennMUSH 1.7.7p 292 This is PennMUSH 1.7.7p30 1.7.7/game/aliascnf.dst
r457 r459 16 16 #reserve_alias u 17 17 #reserve_alias d 18 19 # We add a dummy here to make updating easier 20 reserve_alias dummy_exit_alias 18 21 19 22 # You can also alias commands to other names. 1.7.7/game/mushcnf.dst
r457 r459 375 375 # actual maximum length you want. 376 376 player_name_len 16 377 378 # Limit the number of objects players can own. 379 use_quota yes 377 380 378 381 ### … … 465 468 ### Logging 466 469 ### 470 ### When selecting log files, you may assign multiple logs to the 471 ### same filename. If you don't assign a filename to a log, 472 ### messages are written on stderr instead (usually redirected to 473 ### log/netmush.log). Probably unwise to change these in a running 474 ### MUSH. 475 ### 476 477 # Filename to log connections to 478 connect_log log/connect.log 479 480 # Filename to log wizard commands to 481 wizard_log log/wizard.log 482 483 # Filename to log dump checkpoint messages to 484 checkpt_log log/checkpt.log 485 486 # Filename to log debugging trace messages to 487 trace_log log/trace.log 488 489 # Filename to log commands by SUSPECT players to 490 command_log log/command.log 467 491 468 492 # log all commands. Makes big, big command.log files. Use only for … … 476 500 log_forces yes 477 501 478 # log wizwalls 479 log_walls no 502 # perform memory allocation tracking (logged on @dump) to help find 503 # memory leaks. This really shouldn't be changed while the server 504 # is running - it's only useful if you do a full shutdown, turn 505 # this on, and then start up. Generally, you want this off. 506 mem_check no 480 507 481 508 ### … … 518 545 # or @command/disable. 519 546 520 # restrict haspower() to see_all players?521 haspower_restricted no522 523 547 # prevent objects from evaluating ufuns on more privileged objects. [++] 524 548 safer_ufun yes 549 550 # allow functions that have side effects? (e.g. dig(), etc.) 551 function_side_effects yes 525 552 526 553 # default whisper to whisper/noisy instead of whisper/silent … … 561 588 # should say/pose by a DARK wizard be anonymous ('Someone says...')? 562 589 full_invis no 590 591 # Are empty attributes preserved? If this is yes, you can do 592 # &ATTR obj= and obj will have an attribute ATTR set, with an empty value. 593 # If this is no, that same command would clear the attribute instead. 594 empty_attrs yes 563 595 564 596 ### 1.7.7/game/restart
r441 r459 16 16 LOG=log/netmush.log 17 17 18 # Uncomment the line below to attempt to allow crashes to produce 19 # core dumps. If you're getting crashes, this is the best way 20 # to debug them. 21 #ulimit -c unlimited 18 22 19 23 if [ ! -d $GAMEDIR ]; then 1.7.7/game/restrictcnf.dst
r457 r459 88 88 restrict_command warn_on_missing nobody 89 89 90 # We add a dummy here to make updating easier 91 restrict_function lstats noguest 92 1.7.7/game/txt/hlp/penncmd.hlp
r457 r459 1409 1409 & @function 1410 1410 @function [<function name>] 1411 @function < function name>=<object>,<attribute>[,<min args>, <max args>]1411 @function <name>=<obj>,<attrib>[,<min args>, <max args>[,<restrictions>]] 1412 1412 or @function <function name>=<object>/<attribute> 1413 1413 @function/<switch> <function name> … … 1480 1480 @function/delete ansi 1481 1481 &ansi_fun #1234=%0 1482 @function ansi=#1234, ansi_fun, 2, 2 1482 @function ansi=#1234, ansi_fun, 2, 2, noguest 1483 1483 1484 1484 will create a new version of ansi() that doesn't do any 1485 1485 colorization, and that requires it to be called with exactly 1486 2 arguments, like the built-in version. 1486 2 arguments, like the built-in version. It will be restricted to 1487 non-guest players. 1487 1488 1488 1489 See also: RESTRICT, FUNCTIONS, @startup … … 1983 1984 & @lock9 1984 1985 You can also test for set flags, powers, or object types in a lock directly, 1985 without using an evaluation lock, with these formats:1986 without using an evaluation lock, with these formats: 1986 1987 1987 1988 @lock <object>=flag^<flag> … … 1998 1999 For example, 1999 2000 @lock/use Admin Commands=flag^wizard|flag^royalty 2001 2002 You can test for the current IP address or hostname of the owner 2003 of the object (who must be connected to pass this test) with: 2004 @lock <object>=ip^<ip address> 2005 @lock <object>=hostname^<hostname> 2006 2007 You may use wildcards (*, ?) in these patterns. Note that hostname 2008 tests are insecure; players who control their reverse DNS can spoof 2009 any hostname. 2000 2010 2001 2011 See also: locktypes, @clock 1.7.7/game/txt/hlp/penncode.hlp
r455 r459 14 14 & download 15 15 The latest version of this MUSH code is available at 16 http:// ftp.penmush.org/Source. It will be called something like16 http://download..pennmush.org/Source. It will be called something like 17 17 pennmush-1.7.6p0.tar.Z, depending on the version number. You 18 18 will also find files of translations of server messages into various 1.7.7/game/txt/hlp/pennconf.hlp
r457 r459 195 195 player_name_len=<number>: The maximum length of a player name. 196 196 queue_entry_cpu_time=<number>: The maximum number of milliseconds a 197 queue entry can take to run. 197 queue entry can take to run. 198 use_quota=<boolean>: Controls if quotas are used to limit the number 199 of objects a player can own. 198 200 & @config log 199 201 These options affect logging. 1.7.7/game/txt/hlp/penntop.hlp
r457 r459 1924 1924 nobody Nothing can use it. Same as the /disable switch 1925 1925 to @command or @function. 1926 noparse Function arguments are not evaluated. Only applies 1927 to @functions. 1926 1928 1927 1929 Commands can also use the 'noplayer' restriction, which stops 1.7.7/game/txt/hlp/pennv177.hlp
r457 r459 1 & 1.7.7p 291 & 1.7.7p30 2 2 & changes 3 3 This is a list of changes in this patchlevel which are probably of … … 12 12 be read in 'help patchlevels'. 13 13 14 Version 1.7.7 patchlevel 30 May 6, 2004 15 16 Major changes: 17 * CHAT_SYSTEM option removed. If you don't want to use the chat system, 18 use restrict.cnf to disable @channel, @chat, etc. 19 * USE_MAILER and MAIL_ALIAS options removed. If you don't want to 20 use the @mail or @malias systems, use restrict.cnf to disable 21 the associated commands. 22 * QUOTA, EMPTY_ATTRS, and FUNCTION_SIDE_EFFECTS options are now 23 runtime options, instead of compile-time. 24 * SINGLE_LOGFILE option removed, and log filenames are now 25 runtime options. You may now give the same name to 26 multiple log files and get a more fine-grained version of the 27 same effect. Based on ideas by Vadiv@M*U*S*H. 28 Minor changes: 29 * New IP^ and HOSTNAME^ tests for boolexps. Suggested by Luke@M*U*S*H. 30 * ALLOW_NOSUBJECT option removed. We always use the beginning of the 31 message as the subject if one is not provided. 32 * JURY_OK and UNINSPECTED_FLAG options removed. Use @flag to add 33 flags if you need them. ONLINE_REG and VACATION_FLAG options 34 removed (default to always defined, add or remove with @flag as 35 desired). 36 * MEM_CHECK option removed from options.h; it is now a runtime 37 option in mush.cnf. 38 * @function/restrict can be applied to softcoded @functions, and 39 @function/add can accept a list of restrictions as a fifth argument. 40 Patch by Luke@M*U*S*H. 41 * log_walls run-time configuration option removed. Use the 42 logargs option in restrict.cnf instead. 43 Fixes: 44 * Crash bug in anonymous attributes fixed. Report by Intrevis@M*U*S*H. 45 * lplayers() was broken. Report by T'orA@M*U*S*H. 46 * Failing to create a player by providing a bad password now gives 47 a better error. Suggested by [NJG]. 48 * Setting/clearing a chan title on a notitles channel works, but 49 reminds you that titles are off. Suggested by Dan@InNomine. 50 * haspower_restricted removed from mushcnf.dst to stop spurious 51 warning on startup. Report by Nymeria@M*U*S*H. 52 53 54 & 1.7.7p29 14 55 Version 1.7.7 patchlevel 29 April 28, 2004 15 56 1.7.7/game/txt/hlp/pennvOLD.hlp
r457 r459 4419 4419 4420 4420 1.7.7: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 4421 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 4421 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 4422 4422 1.7.6: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 4423 4423 1.7.5: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 1.7.7/hdrs/atr_tab.h
r455 r459 28 28 {"ALIAS", AF_VISUAL | AF_NOPROG | AF_PREFIXMATCH, NULL_CHUNK_REFERENCE, 0, 29 29 NULL}, 30 #ifdef USE_MAILER31 30 {"AMAIL", AF_WIZARD | AF_PREFIXMATCH, NULL_CHUNK_REFERENCE, 0, NULL}, 32 #endif33 31 {"AMHEAR", AF_NOPROG | AF_PREFIXMATCH, NULL_CHUNK_REFERENCE, 0, NULL}, 34 32 {"AMOVE", AF_NOPROG | AF_PREFIXMATCH, NULL_CHUNK_REFERENCE, 0, NULL}, … … 100 98 {"LFAIL", AF_NOPROG | AF_PREFIXMATCH, NULL_CHUNK_REFERENCE, 0, NULL}, 101 99 {"LISTEN", AF_NOPROG | AF_PREFIXMATCH, NULL_CHUNK_REFERENCE, 0, NULL}, 102 #ifdef USE_MAILER103 100 {"MAILCURF", AF_WIZARD | AF_NOPROG | AF_LOCKED | AF_PREFIXMATCH, 104 101 NULL_CHUNK_REFERENCE, 0, NULL}, … … 108 105 NULL_CHUNK_REFERENCE, 0, NULL}, 109 106 {"MAILSIGNATURE", AF_NOPROG | AF_PREFIXMATCH, NULL_CHUNK_REFERENCE, 0, NULL}, 110 #endif111 107 {"MOVE", AF_NOPROG | AF_PREFIXMATCH, NULL_CHUNK_REFERENCE, 0, NULL}, 112 108 {"NAMEACCENT", AF_NOPROG | AF_VISUAL | AF_PREFIXMATCH, NULL_CHUNK_REFERENCE, 1.7.7/hdrs/conf.h
r457 r459 140 140 char uncompressprog[256]; /**< Program to uncompress database dumps */ 141 141 char compresssuff[256]; /**< Suffix for compressed dump files */ 142 #ifdef CHAT_SYSTEM143 142 char chatdb[256]; /**< Name of the chat database file */ 144 143 int max_player_chans; /**< Number of channels a player can create */ 145 144 int max_channels; /**< Total maximum allowed channels */ 146 145 int chan_cost; /**< Cost to create a channel */ 147 #endif148 146 char connect_file[2][256]; /**< Names of text and html connection files */ 149 147 char motd_file[2][256]; /**< Names of text and html motd files */ … … 158 156 int log_huhs; /**< Should we log commands that produce a Huh? */ 159 157 int log_forces; /**< Should we log force commands? */ 160 int log_walls; /**< Should we log wall commands? */161 158 int support_pueblo; /**< Should the MUSH send Pueblo tags? */ 162 159 int login_allow; /**< Are mortals allowed to log in? */ … … 255 252 int ssl_require_client_cert; /**< Are clients required to present certs? */ 256 253 #endif 254 int mem_check; /**< Turn on the memory allocation checker? */ 255 int use_quota; /**< Are quotas enabled? */ 256 int empty_attrs; /**< Are empty attributes preserved? */ 257 int function_side_effects; /**< Turn on side effect functions? */ 258 char connect_log[256]; /**< File to log connections */ 259 char wizard_log[256]; /**< File to log wizard commands */ 260 char command_log[256]; /**< File to log suspect commands */ 261 char trace_log[256]; /**< File to log trace data */ 262 char checkpt_log[256]; /**< File to log checkpoint data */ 257 263 }; 258 264 … … 404 410 #define ONLY_ASCII_NAMES (options.ascii_names) 405 411 #define MAX_GLOBAL_FNS (options.max_global_fns) 412 #define USE_QUOTA (options.use_quota) 413 #define EMPTY_ATTRS (options.empty_attrs) 414 #define FUNCTION_SIDE_EFFECTS (options.function_side_effects) 415 #define CONNLOG (options.connect_log) 416 #define WIZLOG (options.wizard_log) 417 #define CMDLOG (options.command_log) 418 #define TRACELOG (options.trace_log) 419 #define CHECKLOG (options.checkpt_log) 406 420 407 421 #define CHUNK_SWAP_FILE (options.chunk_swap_file) 1.7.7/hdrs/dbdefs.h
r457 r459 63 63 64 64 /* Check for a specific one */ 65 #define IsPlayer(x) ( Typeof(x) & TYPE_PLAYER)66 #define IsRoom(x) ( Typeof(x) & TYPE_ROOM)67 #define IsThing(x) ( Typeof(x) & TYPE_THING)68 #define IsExit(x) ( Typeof(x) & TYPE_EXIT)65 #define IsPlayer(x) (!!(Typeof(x) & TYPE_PLAYER)) 66 #define IsRoom(x) (!!(Typeof(x) & TYPE_ROOM)) 67 #define IsThing(x) (!!(Typeof(x) & TYPE_THING)) 68 #define IsExit(x) (!!(Typeof(x) & TYPE_EXIT)) 69 69 /* Was Destroyed() */ 70 #define IsGarbage(x) ( Typeof(x) & TYPE_GARBAGE)71 #define Marked(x) ( db[(x)].type & TYPE_MARKED)70 #define IsGarbage(x) (!!(Typeof(x) & TYPE_GARBAGE)) 71 #define Marked(x) (!!(db[(x)].type & TYPE_MARKED)) 72 72 73 73 #define IS(thing,type,flag) \ … … 84 84 #define Unregistered(x) (IS(x, TYPE_PLAYER, "UNREGISTERED")) 85 85 #define Fixed(x) (IS(Owner(x), TYPE_PLAYER, "FIXED")) 86 87 #ifdef VACATION_FLAG88 86 #define Vacation(x) (IS(x, TYPE_PLAYER, "ON-VACATION")) /* 0x10000 */ 89 #else90 #define Vacation(x) 091 #endif92 87 93 88 /* Flags that apply to players, and all their stuff, … … 120 115 #define RoomInhearit(x) (IS(x, TYPE_ROOM, "LISTEN_PARENT")) /* 0x400 */ 121 116 122 #ifdef UNINSPECTED_FLAG123 117 #define Uninspected(x) (IS(x, TYPE_ROOM, "UNINSPECTED")) /* 0x1000 */ 124 #else125 #define Uninspected(x) 0126 #endif127 118 128 119 #define ZTel(x) (ThingZTel(x) || RoomZTel(x)) … … 295 286 for((var) = first_visible((player), (first)); GoodObject((var)); (var) = first_visible((player), Next(var))) 296 287 297 #ifdef USE_MAILER298 288 /** A mail message. 299 289 * This structure represents a single mail message in the linked list … … 315 305 typedef struct mail MAIL; 316 306 317 #endif /* USE_MAILER */318 307 319 308 extern const char *EOD; 1.7.7/hdrs/extchat.h
r457 r459 42 42 #define __EXTCHAT_H 43 43 44 #ifdef CHAT_SYSTEM45 44 46 45 #include "boolexp.h" … … 265 264 266 265 267 #endif /* CHAT_SYSTEM */268 266 #endif /* __EXTCHAT_H */ 1.7.7/hdrs/externs.h
r457 r459 94 94 void dump_reboot_db(void); 95 95 void close_ssl_connections(void); 96 char *least_idle_ip(dbref player); 97 char *least_idle_hostname(dbref player); 96 98 97 99 /* The #defs for our notify_anything hacks.. Errr. Functions */ … … 134 136 extern dbref na_except2(dbref current, void *data); 135 137 extern dbref na_exceptN(dbref current, void *data); 136 #ifdef CHAT_SYSTEM137 138 extern dbref na_channel(dbref current, void *data); 138 #endif139 139 140 140 #define notify(p,m) notify_anything(orator, na_one, &(p), NULL, 0, m) … … 212 212 extern void do_look_around(dbref player); 213 213 extern void do_look_at(dbref player, const char *name, int key); 214 215 /* From memcheck.c */ 216 extern void add_check(const char *ref); 217 extern void del_check(const char *ref); 218 extern void list_mem_check(dbref player); 219 extern void log_mem_check(void); 214 220 215 221 /* From move.c */ … … 278 284 extern int payfor(dbref who, int cost); 279 285 extern int nearby(dbref obj1, dbref obj2); 280 #ifdef QUOTA281 286 extern int get_current_quota(dbref who); 282 287 extern void change_quota(dbref who, int payment); 283 #endif284 288 extern int ok_name(const char *name); 285 289 extern int ok_command_name(const char *name); 1.7.7/hdrs/extmail.h
r427 r459 3 3 #ifndef _EXTMAIL_H 4 4 #define _EXTMAIL_H 5 #ifdef USE_MAILER6 5 /* Some of this isn't implemented yet, but heralds the future! */ 7 6 #define M_MSGREAD 0x0001 … … 106 105 extern void desc_mail_clear(void); 107 106 108 #endif /* USE_MAILER */109 107 #endif /* _EXTMAIL_H */ 1.7.7/hdrs/game.h
r457 r459 150 150 extern dbref do_pcreate 151 151 (dbref creator, const char *player_name, const char *player_password); 152 #ifdef QUOTA153 152 extern void do_quota 154 153 (dbref player, const char *arg1, const char *arg2, int set_q); 155 154 extern void do_allquota(dbref player, const char *arg1, int quiet); 156 #endif157 155 extern void do_teleport 158 156 (dbref player, const char *arg1, const char *arg2, int silent, int inside); 1.7.7/hdrs/htab.h
r427 r459 54 54 extern void *hash_firstentry(HASHTAB *htab); 55 55 extern void *hash_nextentry(HASHTAB *htab); 56 extern char *hash_firstentry_key(HASHTAB *htab); 57 extern char *hash_nextentry_key(HASHTAB *htab); 56 58 extern void hash_stats_header(dbref player); 57 59 extern void hash_stats(dbref player, HASHTAB *htab, const char *hashname); 1.7.7/hdrs/malias.h
r417 r459 4 4 #define _MALIAS_H 5 5 6 #ifdef MAIL_ALIASES7 6 8 7 #define MALIAS_TOKEN '+' /* Initial char for alias names */ … … 54 53 55 54 #endif 56 57 #endif1.7.7/hdrs/mushtype.h
r441 r459 117 117 struct descriptor_data *next; /**< Next descriptor in linked list */ 118 118 struct descriptor_data *prev; /**< Previous descriptor in linked list */ 119 #ifdef USE_MAILER120 119 struct mail *mailp; /**< Pointer to start of player's mail chain */ 121 #endif122 120 int conn_flags; /**< Flags of connection (telnet status, etc.) */ 123 121 unsigned long input_chars; /**< Characters received */ … … 137 135 #define BUFFER_LEN ((MAX_COMMAND_LEN)*2) 138 136 139 #ifdef CHAT_SYSTEM140 137 /* Channel stuff */ 141 138 typedef struct chanuser CHANUSER; 142 139 typedef struct chanlist CHANLIST; 143 140 typedef struct channel CHAN; 144 #endif145 141 146 142 #endif 1.7.7/hdrs/oldflags.h
r411 r459 105 105 */ 106 106 #define PLAYER_ZONE 0x800 /* Zone Master (zone control owner) */ 107 #ifdef JURY_OK108 107 #define PLAYER_JURY 0x1000 /* Jury_ok Player */ 109 108 #define PLAYER_JUDGE 0x2000 /* Judge player */ 110 #endif111 109 #define PLAYER_FIXED 0x4000 /* can't @tel or home */ 112 #ifdef ONLINE_REG113 110 #define PLAYER_UNREG 0x8000 /* Not yet registered */ 114 #endif115 #ifdef VACATION_FLAG116 111 #define PLAYER_VACATION 0x10000 /* On vacation */ 117 #endif118 112 #define PLAYER_COLOR 0x80000 /* ANSI color ok */ 119 113 #define PLAYER_NOACCENTS 0x100000 /* Strip accented text on output */ … … 155 149 #define ROOM_INHEARIT 0x400 /* checks parent chain for ^ patterns */ 156 150 157 #ifdef UNINSPECTED_FLAG158 151 #define ROOM_UNINSPECT 0x1000 /* Not inspected */ 159 #endif160 152 161 153 1.7.7/hdrs/version.h
r457 r459 1 #define VERSION "PennMUSH version 1.7.7 patchlevel 29 [04/28/2004]"2 #define SHORTVN "PennMUSH 1.7.7p 29"3 #define NUMVERSION 0010070070 291 #define VERSION "PennMUSH version 1.7.7 patchlevel 30 [05/06/2004]" 2 #define SHORTVN "PennMUSH 1.7.7p30" 3 #define NUMVERSION 001007007030 1.7.7/options.h.dist
r457 r459 84 84 /*------------------------- Other internals ----------------------*/ 85 85 86 87 /* Define this if you don't wish your log file to be split up into several88 * components. This saves on file descriptors and makes it easy to tail -f89 * the log, but is inconvenient for quick scanning.90 */91 /* #define SINGLE_LOGFILE /* */92 93 /* Defining this adds a simple tracking allocator of allocs and frees that94 * keeps ref counts of what sort of memory is allocated, and how many.95 * Good for testing for Memory leaks. Don't, however, define this unless96 * 1. It's really necessary. 2. You know what you're doing.97 */98 /* #define MEM_CHECK /* */99 100 86 /* If defined, use the info_slave to get information from identd, 101 87 * instead of having the MUSH do it directly. This may help reduce lag … … 112 98 /*------------------------- MUSH Features ----------------------*/ 113 99 114 /* This option is to control whether functions may have side effects115 * affecting the db. With it on, the functions create(), open(),116 * dig(), link(), and set() exist, corresponding to the @commands of117 * the same name. Also, the 2 parameter versions of zone(), parent(),118 * and lock() are enabled by this define.119 */120 #define FUNCTION_SIDE_EFFECTS /* */121 122 /* Comment this out if you don't wish to use the built-in mail system.123 * The @mail command provides a flexible hardcoded mail system, which124 * uses its own database to store messages.125 */126 #define USE_MAILER /* */127 128 /* Defining ALLOW_NOSUBJECT marks mail sent with no subject as having129 * subject '(no subject)'. The default is for the subject of the mail to130 * be the first 30 characters of the message when not specfied131 */132 /* #define ALLOW_NOSUBJECT /* */133 134 /*135 * Should we have mail aliases (@mailing lists?). This modifies136 * the maildb format, but you can reverse it.137 */138 #define MAIL_ALIASES /* */139 140 /* The chat channels system allows players to talk cross-MUSH to each141 * other, without needing to be in the same room. Whether or not you142 * want this depends on what type of MUSH you want.143 */144 #define CHAT_SYSTEM /* */145 146 100 /* Many MUSHes want to change the +channels to =channels. That's 147 101 * annoying. So we've got this CHAT_TOKEN_ALIAS, which allows + as well … … 152 106 /* #define CHAT_TOKEN_ALIAS '=' /* */ 153 107 154 /* Quotas limit players to a fixed number of objects.155 * Wizards can check and set quotas on players.156 * See also restricted_building in game/mush.cnf for another way157 * to slow database growth.158 */159 /* #define QUOTA /* */160 161 162 /*------------------------------ DB ----------------------------------*/163 164 /* With EMPTY_ATTRS, empty (no value) attributes are retained on165 * objects, keeping their attribute flags and locked status.166 * Without this option, such attributes are fully deleted.167 * Recommended.168 */169 #define EMPTY_ATTRS /* */170 171 172 /*------------------------------ FLAGS --------------------------------*/173 174 175 /* If defined, enables the Jury and Judge flags, which don't do anything176 * in themselves, but which other MUSHes may find useful177 */178 /* #define JURY_OK /* */179 180 /* If defined, adds support for the UNREGISTERED flag, which you can181 * arrange in mush.cnf to have set on new players, and can test for.182 * The only hardcoded restriction is in wiz.c - unreg'd players can't183 * be given powers184 */185 /* #define ONLINE_REG /* */186 187 /* If defined, adds support for the ON-VACATION flag, which a player188 * can set to indicate that they're going to be away from the MUSH189 * for vacation (and which a wizard can test for when doing player purges,190 * or which can aid other players, etc).191 */192 /* #define VACATION_FLAG /* */193 194 /* If defined, adds the UNINSPECTED flag for rooms, which does nothing,195 * but can be tested for in mushcode, etc.196 */197 /* #define UNINSPECTED_FLAG /* */198 108 199 109 /*------------------------- Cosmetic Features --------------------*/ … … 208 118 209 119 210 /*------------------------- Log Files ----------------------------*/211 212 /* The main log is given on the command line, after the config file.213 * Checkpoints are written to a separate log, as are connects and214 * disconnects from the game, commands used by wizards, report traces,215 * and player commands. The defaults are listed below.216 */217 218 #define CHECKLOG "log/checkpt.log"219 #define CONNLOG "log/connect.log"220 #define WIZLOG "log/wizard.log"221 #define TRACELOG "log/trace.log"222 #define CMDLOG "log/command.log"223 224 120 #endif 1.7.7/src/Makefile.SH
r455 r459 79 79 ../hdrs/htab.h ../hdrs/htab.h ../hdrs/ident.h ../hdrs/lock.h \ 80 80 ../hdrs/log.h ../hdrs/log.h ../hdrs/malias.h ../hdrs/match.h \ 81 ../hdrs/m emcheck.h ../hdrs/mushdb.h ../hdrs/mushtype.h \81 ../hdrs/mushdb.h ../hdrs/mushtype.h \ 82 82 ../hdrs/mymalloc.h ../hdrs/mysocket.h ../hdrs/myssl.h \ 83 83 ../hdrs/parse.h ../hdrs/pcre.h ../hdrs/privtab.h ../hdrs/ptab.h \ … … 192 192 193 193 depend: funlocal.c cmdlocal.c local.c flaglocal.c 194 makedepend - w10 -- $(CFLAGS) -- $(C_FILES) $(H_FILES)195 ../utils/fixdepend.pl Makefile 194 makedepend -fMakefile.SH -w10 -- $(CFLAGS) -- $(C_FILES) $(H_FILES) 195 ../utils/fixdepend.pl Makefile.SH 196 196 197 197 # Requires GNU indent! … … 239 239 access.o: ../options.h 240 240 access.o: ../hdrs/mushtype.h 241 access.o: ../hdrs/htab.h 241 242 access.o: ../hdrs/externs.h 243 access.o: ../hdrs/dbdefs.h 244 access.o: ../hdrs/mushdb.h 245 access.o: ../hdrs/flags.h 246 access.o: ../hdrs/ptab.h 247 access.o: ../hdrs/chunk.h 248 access.o: ../hdrs/attrib.h 242 249 access.o: ../confmagic.h 243 access.o: ../hdrs/memcheck.h244 250 access.o: ../hdrs/access.h 245 251 access.o: ../hdrs/mymalloc.h … … 247 253 access.o: ../hdrs/parse.h 248 254 access.o: ../hdrs/log.h 249 access.o: ../hdrs/mushdb.h250 access.o: ../hdrs/dbdefs.h251 access.o: ../hdrs/htab.h252 access.o: ../hdrs/flags.h253 255 atr_tab.o: ../config.h 254 256 atr_tab.o: ../hdrs/conf.h … … 256 258 atr_tab.o: ../options.h 257 259 atr_tab.o: ../hdrs/mushtype.h 260 atr_tab.o: ../hdrs/htab.h 258 261 atr_tab.o: ../hdrs/externs.h 262 atr_tab.o: ../hdrs/dbdefs.h 263 atr_tab.o: ../hdrs/mushdb.h 264 atr_tab.o: ../hdrs/flags.h 265 atr_tab.o: ../hdrs/ptab.h 266 atr_tab.o: ../hdrs/chunk.h 267 atr_tab.o: ../hdrs/attrib.h 259 268 atr_tab.o: ../confmagic.h 260 atr_tab.o: ../hdrs/attrib.h261 269 atr_tab.o: ../hdrs/atr_tab.h 262 atr_tab.o: ../hdrs/ptab.h263 270 atr_tab.o: ../hdrs/privtab.h 264 271 atr_tab.o: ../hdrs/mymalloc.h 265 atr_tab.o: ../hdrs/dbdefs.h266 atr_tab.o: ../hdrs/htab.h267 272 atr_tab.o: ../hdrs/log.h 268 273 atr_tab.o: ../hdrs/parse.h … … 272 277 attrib.o: ../options.h 273 278 attrib.o: ../hdrs/mushtype.h 279 attrib.o: ../hdrs/htab.h 280 attrib.o: ../hdrs/chunk.h 274 281 attrib.o: ../hdrs/attrib.h 275 282 attrib.o: ../hdrs/dbdefs.h 276 attrib.o: ../hdrs/htab.h 283 attrib.o: ../hdrs/mushdb.h 284 attrib.o: ../hdrs/flags.h 285 attrib.o: ../hdrs/ptab.h 277 286 attrib.o: ../hdrs/externs.h 278 287 attrib.o: ../confmagic.h 279 288 attrib.o: ../hdrs/match.h 280 attrib.o: ../hdrs/memcheck.h281 289 attrib.o: ../hdrs/parse.h 282 290 attrib.o: ../hdrs/privtab.h 283 291 attrib.o: ../hdrs/mymalloc.h 284 292 attrib.o: ../hdrs/strtree.h 285 attrib.o: ../hdrs/flags.h286 attrib.o: ../hdrs/mushdb.h287 293 attrib.o: ../hdrs/lock.h 288 294 attrib.o: ../hdrs/boolexp.h … … 293 299 boolexp.o: ../options.h 294 300 boolexp.o: ../hdrs/mushtype.h 301 boolexp.o: ../hdrs/htab.h 295 302 boolexp.o: ../hdrs/mushdb.h 303 boolexp.o: ../hdrs/flags.h 304 boolexp.o: ../hdrs/ptab.h 296 305 boolexp.o: ../hdrs/match.h 297 306 boolexp.o: ../hdrs/externs.h 307 boolexp.o: ../hdrs/dbdefs.h 308 boolexp.o: ../hdrs/chunk.h 309 boolexp.o: ../hdrs/attrib.h 298 310 boolexp.o: ../confmagic.h 299 311 boolexp.o: ../hdrs/lock.h 300 312 boolexp.o: ../hdrs/boolexp.h 301 313 boolexp.o: ../hdrs/parse.h 302 boolexp.o: ../hdrs/attrib.h303 boolexp.o: ../hdrs/flags.h304 boolexp.o: ../hdrs/dbdefs.h305 boolexp.o: ../hdrs/htab.h306 314 boolexp.o: ../hdrs/log.h 307 315 boolexp.o: ../hdrs/extchat.h 308 316 boolexp.o: ../hdrs/strtree.h 309 boolexp.o: ../hdrs/memcheck.h310 317 bsd.o: ../hdrs/copyrite.h 311 318 bsd.o: ../config.h … … 313 320 bsd.o: ../options.h 314 321 bsd.o: ../hdrs/mushtype.h 322 bsd.o: ../hdrs/htab.h 323 bsd.o: ../hdrs/chunk.h 324 bsd.o: ../hdrs/attrib.h 315 325 bsd.o: ../hdrs/mushdb.h 326 bsd.o: ../hdrs/flags.h 327 bsd.o: ../hdrs/ptab.h 316 328 bsd.o: ../hdrs/externs.h 329 bsd.o: ../hdrs/dbdefs.h 317 330 bsd.o: ../confmagic.h 318 bsd.o: ../hdrs/dbdefs.h319 bsd.o: ../hdrs/htab.h320 bsd.o: ../hdrs/flags.h321 331 bsd.o: ../hdrs/lock.h 322 332 bsd.o: .
