summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-12-18 20:44:32 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2018-12-18 20:44:32 +0000
commitd7b9564e17382454183a1202b8b8e3054e505caf (patch)
tree8db361589a1701b5a8bd1aba519b43e4970ee9a5 /scripts
parentDon't schedule another permit cum when toy already has permission (diff)
downloadtoy-d7b9564e17382454183a1202b8b8e3054e505caf.zip
Show lounge after confession of nothing listed
Diffstat (limited to 'scripts')
-rw-r--r--scripts/toy.groovy5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy
index 80b0c47..c7b9bba 100644
--- a/scripts/toy.groovy
+++ b/scripts/toy.groovy
@@ -1246,7 +1246,10 @@ def confess = {
opts.push([ lbl: "Nothing listed (phew!)", act: null ]);
def opt = getSelectedValue(null, opts.collect { it.lbl });
def act = opts[opt].act;
- if (!act) return;
+ if (!act) {
+ showLounge();
+ return;
+ }
act();
if (!getBoolean("Anything else?")) break;
}