(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;
|
||||
time_t now;
|
||||
|
||||
if (!player->argp[1]) {
|
||||
if (!snxtitem(&ni, EF_LOST, "*"))
|
||||
return RET_SYN;
|
||||
} else {
|
||||
if (!snxtitem(&ni, EF_LOST, player->argp[1]))
|
||||
return RET_SYN;
|
||||
}
|
||||
if (!snxtitem(&ni, EF_LOST, player->argp[1] ? player->argp[1] : "*"))
|
||||
return RET_SYN;
|
||||
|
||||
prdate();
|
||||
nlost = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue