[Prev][Next][Index][Thread]

# Re: Case (in)sensitivity

- Date: Mon, 4 Dec 1995 21:51:05 PST
- From:
- cc: moo-cows@parc.xerox.com
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- In-Reply-To: <199512050036.TAA25384@tripod.tripod.com>

    > with case sensitivity, at least as far as player-names go. Basically,
    > I'm looking for input--has anyone done this, tried to do this,

    Instead of using a line like:
      if( player.name == "Sinjin" )

    you'd use a line like:
      if( !strcmp( player.name, "Sinjin" ))

    If you are using the 1.7.9p2 server version, replace lines like:
      if( "Sinjin" in (player_name_list))

    with:
      if( is_member( "Sinjin", player_name_list ))

    If you are not using 1.7.9p2 or better, upgrade. ;)  The 1.7.8p4 version
    of the above line is:
      if( (i = "Sinjin" in (player_name_list)) && !strcmp( "Sinjin",
        player_name_list[i] ))

    Specific verb rewrites available by request.
    Def.

References:

- Case (in)sensitivity

- From: Melanie <melanie@tripod.tripod.com>

- Prev: Re: Case (in)sensitivity
- Next: Re: Case (in)sensitivity
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index