Re: Abbreviations.

From: Anthony Spataro (ads@netcom.com)
Date: 04/27/95


The following was posted to the list awhile ago--last summer, I believe.  
It allows incomplete object names, and you can copy the technique it uses 
to get incomplete player names, although that is a potential annoyance 
and might not be wise.


>From suisol@grfn.ORG Sun Sep 18 15:01:26 1994
Date: Sun, 18 Sep 1994 16:59:39 -0400 (EDT)
From: Jonathan Wood <suisol@grfn.ORG>
To: circle@marble.bu.edu
Subject: name completion code hack

	As promised in an ealier message here is a simple hack to allow
the use of incomplete names for objects, players, mobs, etc. The inspir-
ation for this came from The Realms of Dark Shadows (jericho.connected.com)
which also happens to be where I code (shameless plug, please ignore).

	The hack is quite simple to install and involves only less than
a line of code added to the handler.c file.

IN HANDLER.C IN THE FUNCTION ISNAME() CHANGE THE FOLLOWING CODE:

   for (; ; ) {
      for (curstr = str; ; curstr++, curname++) {
	 if (!*curstr && !isalpha(*curname))
	    return(1);

TO:

   for (; ; ) {
      for (curstr = str; ; curstr++, curname++) {
	 if (!*curstr && !isalpha(*curname) || is_abbrev(curstr, curname))
	    return(1);




 _/\_
/ L  \
\_ C_/
  \/

Demographic polls show that you have lost credibility across the
board.  Especially with  those 14 year-old Valley girls.



This archive was generated by hypermail 2b30 : 12/07/00 PST