Re: A Few Questions..

From: Eric Green (
Date: 04/13/96

> 	#1:
> 		I know this may be a little silly.. but
> 		I'm kinda lazy right now:P Has anyone made
> 		an online read for bug/idea/typo files?

In do_show, add the approriate entry to the command table, then:

  case XX:   /* Where XX is the approriate number for the command */
    if (!value || !*value) {
      send_to_char("Usage: show file [ bugs | ideas | typos ]\r\n", ch);

    i = strlen(value);

    if (!strn_cmp(value, "bugs", i))
      file = BUG_FILE;
    else if (!strn_cmp(value, "ideas", i))
      file = IDEA_FILE;
    else if (!strn_cmp(value, "typos", i))
      file = TYPO_FILE;
    else {
      send_to_char("That is not a valid file.\r\n", ch);

    if (file_to_string(file, buf) == -1)
      send_to_char("Sorry, an error occurred while reading that file.\r\n", ch)\
      page_string(ch->desc, buf, 1);


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