# # Patch name: alias-events-news # Patch version: 1 # Author's name: Matt Chatterley # Author's email: neddy@itl.net # Version of PennMUSH: 1.6.5 patchlevel 03 # Date patch made: 17th July 1996 # Author is willing to support (yes/no): yes if really required # Patch format: diff patch # # # This is a contributed PennMUSH patch. Its use is subject to the # same restrictions found in PennMUSH's hdrs/copyrite.h file. # # No warranty is given for this patch. It is not necessarily going # to work on your system, with any version of PennMUSH other than # the one above, etc. # # If the author given above was willing to support the patch, you # should write to the author if you have any questions or problems. Do # *NOT* send email messages to Javelin or any PennMUSH mailing list about # this patch! # # Below this line is the author's description of the patch, # followed by the patch itself. If the patch is in context diff # format, you'll probably apply it by typing: patch < patchfile # in your top-level MUSH directory, unless instructed otherwise # below. # # Place a line in your options.h file: #define RENAME_NEWS_EVENTS to enable # this hack at compile time. # # The exact function of this patch is to add two commands, THEME and TECH # which perform the functions of EVENTS and NEWS respectively # It is most likely more useful to help you figure out how to alias/change # the names of news/events, than it is in its own right. *** src/game.c.o Wed Jul 17 03:12:01 1996 --- src/game.c.hacked Wed Jul 17 03:11:41 1996 *************** *** 3044,3053 **** --- 3044,3065 ---- Matched("take"); do_get(player, arg1); break; + case 'e': + case 'E': + #ifdef RENAME_NEWS_EVENTS + Matched("tech"); + do_new_spitfile(player, buff3, NEWSINDX, NEWS_FILE, 0); + break; + #endif case 'h': case 'H': if (gagged) break; + #ifdef RENAME_NEWS_EVENTS + Matched("theme"); + do_new_spitfile(player, buff3, EVENTINDX, EVENT_FILE, 0); + break; + #endif Matched("think"); do_think(player, argu); break;