summaryrefslogtreecommitdiff
path: root/npc/commands/scheduled-broadcasts.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/commands/scheduled-broadcasts.txt')
-rw-r--r--npc/commands/scheduled-broadcasts.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/npc/commands/scheduled-broadcasts.txt b/npc/commands/scheduled-broadcasts.txt
index cb40ed7d1..b578d78e1 100644
--- a/npc/commands/scheduled-broadcasts.txt
+++ b/npc/commands/scheduled-broadcasts.txt
@@ -1,19 +1,21 @@
function script StoneBoard {
function setMessage {
+ .@msg$="";
do
{
clear;
mes l("Please enter the message:");
next;
input .@msg$;
- //.@msg$ = strip(.@msg$);
+ .@msg$ = strip(.@msg$);
if (.@msg$ != "") {
return .@msg$;
}
mes l("The message cannot be empty");
next;
- } while (1);
+ } while (.@msg$ == "");
+ return .@msg$;
}
function setInterval {