From 5c2dbe2cdede0b22ed8d1708f6959ce65ecaea6b Mon Sep 17 00:00:00 2001 From: AreiaAard Date: Mon, 24 May 2021 20:00:58 -0400 Subject: [PATCH] Fix hardcoded ; stack chars to reply upon GetAlphaOption instead --- areia_consider.xml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/areia_consider.xml b/areia_consider.xml index 0cdf1f2..6e6946f 100644 --- a/areia_consider.xml +++ b/areia_consider.xml @@ -112,7 +112,8 @@ function Main.kill_all(alias, line, wc) Utility.print("All mobs in room are ignored.") return end - Execute(table.concat(cmds, ";")) + local stackChar = GetAlphaOption("command_stack_character") + Execute(table.concat(cmds, stackChar)) end @@ -348,7 +349,8 @@ end function Settings.kill_cmd(alias, line, wc) if (wc.setting ~= "") then - Settings.config.killCmds = utils.split(wc.setting, ";") + local stackChar = GetAlphaOption("command_stack_character") + Settings.config.killCmds = utils.split(wc.setting, stackChar) Settings.save() end Utility.plugin_msg("Kill command:", @@ -362,7 +364,8 @@ function Settings.get_kill_cmd(mob) local cmdStr = string.format("%s %d.'%s'", cmd, mob.index, mob.keywords) table.insert(cmdList, cmdStr) end - return table.concat(cmdList, ";") + local stackChar = GetAlphaOption("command_stack_character") + return table.concat(cmdList, stackChar) end function Settings.get_kill_cmd_str() @@ -371,7 +374,8 @@ function Settings.get_kill_cmd_str() local cmdStr = string.format("%s ", cmd) table.insert(cmdList, cmdStr) end - return table.concat(cmdList, ";") + local stackChar = GetAlphaOption("command_stack_character") + return table.concat(cmdList, stackChar) end function Settings.mob_keywords_display_all()