Help Topic Missing! [by Samedi]
Snippet Posted Wednesday, August 12th @ 11:28:23 PM, by George Greer in the Utils dept.
Added Mar 5, 1997. Click the link below to read it or download it.

From: Sammy 
Subject: Logging missing help topics

Here's a simple trick you can use to find out where your help files are
lacking.

In act.informative.c, in do_help:

Add this declaration (or not):

  char buf[MAX_INPUT_LENGTH + 33];

And after the line that sends "There is no help on that word", add:

      sprintf(buf, "HELP: %s attempted to get help on %s", GET_NAME(ch),

argument);
      mudlog(buf, NRM, LVL_IMMORT, TRUE);

That's all there is to it.  I'd suggest adding an fgrep in autorun to send
help logs to a new file.

For the more advanced, you could copy the bug/idea/typo format, and have
it do_gen_write(ch, argument, 0, SCMD_HELP) to have it go straight to it's
own file, but that's more typing than I'm willing to do :)

Sam


<< Help Index Command [by Angus Mezick] | Reply | View as text | Threaded | Hidden Doors / Search [by Joe Frohne] >>

 


Related Links
  download
Related Articles
More by greerga
 
 

CircleMUD Snippets
 
Note: Not all of these snippets will work perfectly with your version of code, so be prepared to fix one or two bugs that may arise, and please let me know what you needed to do to fix it. Sending a corrected version is always welcome.
Finally, if you wish to use any of the snippets from this page, you are more than welcome, just mention the authors in your credits. If you wish to release any of these snippets to the public on another site, contact me FIRST.