]> git.pond.sub.org Git - empserver/commitdiff
retreat: Fail without charging BTUs when given no conditions
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 21 Jan 2014 21:07:12 +0000 (22:07 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 16 Feb 2014 12:19:26 +0000 (13:19 +0100)
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>
src/lib/commands/retr.c

index f08a65372b7744f99d77955e60940c653bedede2..9bf6f2396c087547c440400f90eb238e0bc6fad4 100644 (file)
@@ -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)