version 1.61 | | version 1.62 |
---|
| | |
/* | | /* |
* static char *rcsid_c_misc_c = | | * static char *rcsid_c_misc_c = |
* "$Id: c_misc.c,v 1.61 2005/07/16 19:03:01 qal21 Exp $"; | | * "$Id: c_misc.c,v 1.62 2005/07/16 19:52:43 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
break; | | 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"); |
break; | | break; |
case 'h' : strcpy(return_val,pl->peaceful?"":" [Hostile]"); | | case 'h' : strcpy(return_val,pl->peaceful?"":" [Hostile]"); |
break; | | break; |
| | |
break; | | break; |
case 'i' : strcpy(return_val,pl->socket.host); | | case 'i' : strcpy(return_val,pl->socket.host); |
break; | | break; |
case '%' : strcpy(return_val, "%\0"); | | case '%' : strcpy(return_val, "%"); |
break; | | break; |
case '_' : strcpy(return_val, "_\0"); | | case '_' : strcpy(return_val, "_"); |
break; | | break; |
} | | } |
| | |