(sct_typematch): New. Use it instead of typematch() where
appropriate. (typematch): Prefer exact match to partial match. Use plain char instead of s_char.
This commit is contained in:
parent
844b654d44
commit
f5e49a830c
5 changed files with 51 additions and 52 deletions
|
@ -61,7 +61,7 @@ shar(void)
|
|||
return RET_SYN;
|
||||
|
||||
if (player->argp[3] && *player->argp[3]) {
|
||||
if (typematch(player->argp[3], EF_SECTOR) < 0)
|
||||
if (sct_typematch(player->argp[3]) < 0)
|
||||
return RET_SYN;
|
||||
else
|
||||
des = *player->argp[3];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue