diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-08-24 10:36:20 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-08-24 10:36:20 -0300 |
commit | a70f36339e23872e093f60ec08536dea690b839c (patch) | |
tree | 1b9a0f6e6beb605abfee18faedc6ffc962b8d618 | |
parent | ec7b5c035a1ab422e5c70b9839f5fca7169183e6 (diff) | |
download | serverdata-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
-rw-r--r-- | npc/commands/motd.txt | 4 |
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); |