                       
********************************************************************************
*               ,     .ss$$$$$$$$$$s,             *                            *
*               $. s$$$$$$$$$$$$$$`$$Ss           *    Grehytons DictCheck     *
*               "$$$$$$$$$$$$$$$$$$o$$$       ,   *   A Snippet from WURM MUD  *
*              s$$$$$$$$$$$$$$$$$$$$$$$$s,  ,s    *                            *
*             s$$$$$$$$$"$$$$$$""""$$$$$$"$$$$$,  * ========================== *
*             s$$$$$$$$$$s""$$$$ssssss"$$$$$$$$"  * mail sector33@bigfoot.com  *
*            s$$$$$$$$$$'         `"""ss"$"$s""   * http://go.fast.to/grehyton *
*            s$$$$$$$$$$,              `"""""$    * ========================== *
*            s$$$$$$$$$$$$s,...                   *                            *
*        `ssss$$$$$$$$$$$$$$$$$$$$####s.          ******************************     
*          `""""$$$$$$$$$$$$$$$$$$$$#####$        *     
*                "$$$$$$$$$$$$$$$$$$$$$####s""    *      
*                 "$$$$$$$$$$$$$$$$$$$$$$$$##s    *                    
*                  $$""$$$$$$$$$$$$$$$$$$$$$$$$   *                    
*                 $$"  "$"$$$$$$$$$$$$$$$$$$$$S"  *    
*            ,   ,"     '  $$$$$$$$$$$$$$$$####s  *    
*            $.          .s$$$$$$$$$$$$$$$$$####" *                         
*            "$s.   ..ssS$$$$$$$$$$$$$$$$$$$####" *  
*            .$$$S$$$$$$$$$$$$$$$$$$$$$$$$#####"  * 
*       ..sS$$$$$$$$$$$$$$$$$$$$$$$$$$$######""   *       
*                                                 *                            
***************************************************
									
    The Dictionary Name Checker   by Grehyton


    no licensing cept for the normal mud stuff

  This snippet simply checks a file ( your linux
  dictionary file ) for a characters name. enjoy
  As usual, i probably left something out of this.

The first part is the worst, adding new case statement
to the comm.c login process. geesh. how confusing.

Just look at comm.c, modify merc.h and you can figure it
out.  Here is 'part' of mine.


 case CON_CONFIRM_NEW_NAME:
     switch ( *argument )
     {
     case 'y': case 'Y':
     write_to_buffer(d,"\n\rIs This Name In the dictionary (Y/N)?",0);
     d->connected = CON_CONFIRM_NAME;
     break;


if no then check


       case 'n': case 'N':

       write_to_buffer(d,"\n\r Checking the Dictionary...\n\r",0);
       sprintf(buf,"grep -ix %s bad.names > /dev/null",ch->name);
       printf("Checking dictionary using command [%s]\n\r",buf);
       if(0==system(buf)) {
       write_to_buffer(d,"\n\r This name is in my dictionary!",0);
                       close_socket(d); break;}


This simply greps the file 'bad.names' which should be a normal linux
style dictionary file. If it finds the name then boom, your disco'd.

Hope you enjoy, and dont blame me for errors. 

http://go.fast.to/grehyton
sector33@bigfoot.com
