Re: Rename char function

From: George (greerga@CIRCLEMUD.ORG)
Date: 10/21/98


On Wed, 21 Oct 1998, Ronny Iversen wrote:

>Anybody ever written a function for renaming characters if they have
>innapropriate names, without having to purge them. Any hints will help ;)

free(GET_NAME(ch));
GET_NAME(ch) = str_dup("new name here");

Then you _must_ scan the player table and replace their name there too or
they will only be able to log in with the old name until you reboot.

Trivial really.  I put it under do_set().

>--------------- Codito, ergo sum - "I code, therefore I am" --------------------

raster@redhat.com ?

--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://mouse.van.ml.org/   (mostly) | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/    |                  -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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