(lost): Simplify code for argument default value.
This commit is contained in:
parent
3aea505aa7
commit
fce8b1aa38
1 changed files with 2 additions and 7 deletions
|
@ -47,13 +47,8 @@ lost(void)
|
||||||
struct loststr lost;
|
struct loststr lost;
|
||||||
time_t now;
|
time_t now;
|
||||||
|
|
||||||
if (!player->argp[1]) {
|
if (!snxtitem(&ni, EF_LOST, player->argp[1] ? player->argp[1] : "*"))
|
||||||
if (!snxtitem(&ni, EF_LOST, "*"))
|
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
} else {
|
|
||||||
if (!snxtitem(&ni, EF_LOST, player->argp[1]))
|
|
||||||
return RET_SYN;
|
|
||||||
}
|
|
||||||
|
|
||||||
prdate();
|
prdate();
|
||||||
nlost = 0;
|
nlost = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue