summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-08-24 10:36:20 -0300
committerJesusaves <cpntb1@ymail.com>2018-08-24 10:36:20 -0300
commita70f36339e23872e093f60ec08536dea690b839c (patch)
tree1b9a0f6e6beb605abfee18faedc6ffc962b8d618 /npc
parentec7b5c035a1ab422e5c70b9839f5fca7169183e6 (diff)
downloadserverdata-a70f36339e23872e093f60ec08536dea690b839c.tar.gz
serverdata-a70f36339e23872e093f60ec08536dea690b839c.tar.bz2
serverdata-a70f36339e23872e093f60ec08536dea690b839c.tar.xz
serverdata-a70f36339e23872e093f60ec08536dea690b839c.zip
Allow to close Motd menu - I don't like to be forced to use M+ 'close' button
Diffstat (limited to 'npc')
-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);