From 6293c4c69ffe8e6e6aada7cd88dce6778cabd940 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 28 Feb 2021 11:15:34 -0300 Subject: Prevent npcwalk from sending blank messages --- npc/functions/npcmovegraph.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'npc/functions/npcmovegraph.txt') 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") { -- cgit v1.2.3-60-g2f50