summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/motd.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/npc/commands/motd.txt b/npc/commands/motd.txt
index d6ebf061b..5e4778b2d 100644
--- a/npc/commands/motd.txt
+++ b/npc/commands/motd.txt
@@ -138,13 +138,15 @@ function script MOTDConfig {
menuimage("actions/add", l("Add a new line")),
rif(.@size, menuimage("actions/manage", l("Modify, move, or remove a line"))),
rif(.@size, menuimage("actions/test", l("Test MOTD"))),
- rif(getarg(0,0), menuimage("actions/home", l("Return to Super Menu")));
+ rif(getarg(0,0), menuimage("actions/home", l("Return to Super Menu"))),
+ rif(!getarg(0,0), menuimage("actions/home", l("Close")));
switch (@menu) {
case 1: toggleMOTD; break;
case 2: addNewLine; break;
case 3: modifyLine .@size; break;
case 4: displayMOTD; break;
+ case 6: close; break;
default: return;
}
} while (1);