summaryrefslogtreecommitdiff
path: root/npc/commands/scheduled-broadcasts.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-21 22:30:56 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-21 22:30:56 -0300
commit2454f29a1fd41db4fff24467100209929f1e32c2 (patch)
treedd7d5be1be012b3dd4de1f9838ab7b777f47c87d /npc/commands/scheduled-broadcasts.txt
parent89efb0e7a61e76f1f8e0b1374b1a22c381c48b90 (diff)
downloadserverdata-2454f29a1fd41db4fff24467100209929f1e32c2.tar.gz
serverdata-2454f29a1fd41db4fff24467100209929f1e32c2.tar.bz2
serverdata-2454f29a1fd41db4fff24467100209929f1e32c2.tar.xz
serverdata-2454f29a1fd41db4fff24467100209929f1e32c2.zip
*input() is broken? o.o
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$;
}