Difference for server/c_misc.c from version 1.58 to 1.59


version 1.58 version 1.59
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_c_misc_c =   * static char *rcsid_c_misc_c =
  *   "$Id: c_misc.c,v 1.58 2005/05/07 11:51:20 tchize Exp $";   *   "$Id: c_misc.c,v 1.59 2005/05/29 17:35:54 tchize Exp $";
  */   */
   
 /*  /*
Line 319
 
Line 319
      * new formats have been specified, and if not we will use the old defaults.       * new formats have been specified, and if not we will use the old defaults.
      */       */
     if (!strcmp(settings.who_format,""))       if (!strcmp(settings.who_format,""))
     strcpy(settings.who_format, "%N_the_%t%h%d%n[%m]");      strcpy(settings.who_format, "%N_%T%t%h%d%n[%m]");
     if (!strcmp(settings.who_wiz_format,""))       if (!strcmp(settings.who_wiz_format,""))
     strcpy(settings.who_wiz_format, "%N_the_%t%h%d%nLevel %l [%m](@%i)(%c)");      strcpy(settings.who_wiz_format, "%N_%T%t%h%d%nLevel %l [%m](@%i)(%c)");
     if (op == NULL || QUERY_FLAG(op, FLAG_WIZ))      if (op == NULL || QUERY_FLAG(op, FLAG_WIZ))
     format=settings.who_wiz_format;      format=settings.who_wiz_format;
     else      else
Line 401
 
Line 401
  * the values are:   * the values are:
  * N Name of character   * N Name of character
  * t title of character   * t title of character
    * T    the optional "the " sequence value (depend if player has own_title or not)
  * c count   * c count
  * n newline   * n newline
  * h [Hostile] if character is hostile, nothing otherwise   * h [Hostile] if character is hostile, nothing otherwise
Line 423
 
Line 424
            break;             break;
  case 't' :    strcpy(return_val,(pl->own_title[0]=='\0'?pl->title:pl->own_title));   case 't' :    strcpy(return_val,(pl->own_title[0]=='\0'?pl->title:pl->own_title));
    break;     break;
       case 'T' :    if (pl->own_title[0]=='\0')
                         strcpy(return_val,"the ");
                     else
                         *return_val='\0';
                 break;
  case 'c' :    sprintf(return_val,"%d",pl->ob->count);   case 'c' :    sprintf(return_val,"%d",pl->ob->count);
    break;     break;
  case 'n' :    strcpy(return_val, "\n\0");    case 'n' :    strcpy(return_val, "\n\0");


Legend:
line(s) removed in v.1.58 
line(s) changed
 line(s) added in v.1.59

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:26