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.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/npc/commands/scheduled-broadcasts.txt b/npc/commands/scheduled-broadcasts.txt
index 74a182a23..f8ce3481d 100644
--- a/npc/commands/scheduled-broadcasts.txt
+++ b/npc/commands/scheduled-broadcasts.txt
@@ -7,7 +7,7 @@ function script StoneBoard {
clear;
mes l("Please enter the message:");
next;
- input .@msg$;
+ input(.@msg$);
debugmes "setMessage, received from input: "+.@msg$;
.@msg$ = strip(.@msg$);
debugmes "setMessage, stripped: "+.@msg$;
@@ -17,6 +17,15 @@ function script StoneBoard {
debugmes "setMessage ------ FAILURE";
mes l("The message cannot be empty");
next;
+ .@msg$=input(.@msg$);
+ debugmes "setMessage, received from input: "+.@msg$;
+ .@msg$ = strip(.@msg$);
+ debugmes "setMessage, stripped: "+.@msg$;
+ if (.@msg$ != "") {
+ return .@msg$;
+ }
+ debugmes "setMessage ------ DEFINITIVE FAILURE";
+ next;
} while (.@msg$ == "");
return .@msg$;
}