(tele): Treat telegram to country not yet contacted as failure. This
matches behavior of other commands.
This commit is contained in:
parent
6a5d398c6d
commit
e3443c78eb
1 changed files with 2 additions and 11 deletions
|
@ -74,17 +74,8 @@ tele(void)
|
||||||
|
|
||||||
kk = 1;
|
kk = 1;
|
||||||
while (player->argp[kk] != NULL) {
|
while (player->argp[kk] != NULL) {
|
||||||
if ((n = natarg(player->argp[kk], "for which country? ")) < 0) {
|
if ((n = natarg(player->argp[kk], "for which country? ")) < 0)
|
||||||
if (opt_HIDDEN) {
|
return RET_SYN;
|
||||||
if (n < -1) {
|
|
||||||
return RET_OK;
|
|
||||||
} else {
|
|
||||||
return RET_SYN;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return RET_SYN;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
to = n;
|
to = n;
|
||||||
|
|
||||||
if (kk == 1) {
|
if (kk == 1) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue