Re: [CODE] menu_who snippet?

From: Daniel Koepke (dkoepke@california.com)
Date: 01/14/97


On Tue, 14 Jan 1997, doppsoft wrote:

> Does anyone know where to find the snippet to put a 'do_who' into the 
> main menu?  Tis not on the snippet page, and tis not in the FTP site.

It's kind of easy, really.  In the menu 'case' in nanny(), add:

  case 'w':
    do_who(d->character, "", 0, 0);
    SEND_TO_Q("\r\nPress [ENTER] to return to the menu.\r\n", d);
    STATE(d) = CON_RMOTD;
    break;

The 'w' command at the menu will now do it.


--
Daniel Koepke
dkoepke@california.com
Forgive me father, for I am sin.


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



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