# # Patch name: page-alias # Patch version: 1 # Author's name: Flame # Author's email: flame@access.kuwait.net # Version of PennMUSH: 1.6.7p6 # Date patch made: 9/1/1996 # Author is willing to support (yes/no): no # Patch format: diff -c # # 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. # After applying this patch, paging will show the alias of the doer if he has his alias set else paging will be as usual. *** src/speech.c.orig Sat Aug 31 21:42:23 1996 --- src/speech.c Sun Sep 1 12:16:21 1996 *************** *** 691,696 **** char *head; char *tail; char spot; ATTR *a; if (arg2 && *arg2) { --- 691,698 ---- char *head; char *tail; char spot; + char *s; + ATTR *b; ATTR *a; if (arg2 && *arg2) { *************** *** 811,817 **** db[player].name, gap, message + 1)); break; case 3: ! sprintf(tbuf, "%s pages: %s", db[player].name, message); notify(player, tprintf("You paged %s with '%s'.", db[target].name, message)); break; --- 813,826 ---- db[player].name, gap, message + 1)); break; case 3: ! b = atr_get_noparent(player, "ALIAS"); ! if (b !=NULL) ! { ! s = (char *) uncompress(b->value); ! sprintf(tbuf, "%s(%s) pages: %s", db[player].name, s, message); ! } ! else ! sprintf(tbuf, "%s pages: %s", db[player].name, message); notify(player, tprintf("You paged %s with '%s'.", db[target].name, message)); break; --Message-Boundary-29551--