summaryrefslogtreecommitdiff
path: root/npc/functions/npcmovegraph.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-02-28 11:15:34 -0300
committerJesusaves <cpntb1@ymail.com>2021-02-28 11:15:34 -0300
commit6293c4c69ffe8e6e6aada7cd88dce6778cabd940 (patch)
tree397c678889ba3bcdfd9068f361b670f8158b06aa /npc/functions/npcmovegraph.txt
parent41ba3dd5e378d06b4941a48d5f7e2e6db257a9fc (diff)
downloadserverdata-6293c4c69ffe8e6e6aada7cd88dce6778cabd940.tar.gz
serverdata-6293c4c69ffe8e6e6aada7cd88dce6778cabd940.tar.bz2
serverdata-6293c4c69ffe8e6e6aada7cd88dce6778cabd940.tar.xz
serverdata-6293c4c69ffe8e6e6aada7cd88dce6778cabd940.zip
Prevent npcwalk from sending blank messages
Diffstat (limited to 'npc/functions/npcmovegraph.txt')
-rw-r--r--npc/functions/npcmovegraph.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/npc/functions/npcmovegraph.txt b/npc/functions/npcmovegraph.txt
index d03f15c53..0877b7487 100644
--- a/npc/functions/npcmovegraph.txt
+++ b/npc/functions/npcmovegraph.txt
@@ -171,7 +171,11 @@ function script execmovecmd {
else if (.@cmd$[0] == "say")
{
deletearray .@cmd$[0], 1;
- npctalk implode(.@cmd$, " ");
+ .@msg$=implode(.@cmd$, " ");
+ if (.@msg$ != "" && .@msg$ != " ")
+ npctalk .@msg$;
+ else
+ debugmes "Invalid message passed to execmovecmd/npctalk";
}
else if (.@cmd$[0] == "debugmes")
{