From a70f36339e23872e093f60ec08536dea690b839c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 24 Aug 2018 10:36:20 -0300 Subject: Allow to close Motd menu - I don't like to be forced to use M+ 'close' button --- npc/commands/motd.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'npc') 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); -- cgit v1.2.3-70-g09d2