retreat: Fail without charging BTUs when given no conditions
Return RET_SYN instead of RET_FAIL then. Also drop the error message; the usage help printed for RET_SYN should do. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
c699949326
commit
1e3b7773d4
1 changed files with 2 additions and 4 deletions
|
@ -121,10 +121,8 @@ retreat(int type)
|
|||
}
|
||||
rflags |= 1 << (p - rflagsc);
|
||||
}
|
||||
if (*pq && !rflags) {
|
||||
pr("Must give retreat conditions!\n");
|
||||
return RET_FAIL;
|
||||
}
|
||||
if (*pq && !rflags)
|
||||
return RET_SYN;
|
||||
if (ni.sel == NS_GROUP && ni.group)
|
||||
rflags |= RET_GROUP;
|
||||
if (!*pq)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue