version 1.23 | | version 1.24 |
---|
| | |
/* | | /* |
* static char *rcsid_arch_c = | | * static char *rcsid_arch_c = |
* "$Id: arch.c,v 1.23 2002/07/15 04:57:11 mwedel Exp $"; | | * "$Id: arch.c,v 1.24 2003/02/11 08:10:53 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
MIN(strlen(cp),strlen(query_base_name(op,0))))) retval=14; | | MIN(strlen(cp),strlen(query_base_name(op,0))))) retval=14; |
else if (!strncasecmp(cp,query_base_name(op,1), | | else if (!strncasecmp(cp,query_base_name(op,1), |
MIN(strlen(cp),strlen(query_base_name(op,1))))) retval=14; | | MIN(strlen(cp),strlen(query_base_name(op,1))))) retval=14; |
| | |
| | /* Do substring checks, so things like 'Str+1' will match. |
| | * retval of these should perhaps be lower - they are lower |
| | * then the specific strcasecmp aboves, but still higher than |
| | * some other match criteria. |
| | */ |
| | else if (strstr(query_base_name(op,1), cp)) retval = 12; |
| | else if (strstr(query_base_name(op,0), cp)) retval = 12; |
| | else if (strstr(query_short_name(op), cp)) retval = 12; |
| | |
if (retval) { | | if (retval) { |
if (pl->type == PLAYER) | | if (pl->type == PLAYER) |
pl->contr->count=count; | | pl->contr->count=count; |