version 1.58 | | version 1.59 |
---|
| | |
/* | | /* |
* 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 $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* 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 |
| | |
* 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 |
| | |
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"); |