Fix hardcoded ; stack chars to reply upon GetAlphaOption instead

main
AreiaAard 4 years ago
parent 7775e0889f
commit 5c2dbe2cde

@ -112,7 +112,8 @@ function Main.kill_all(alias, line, wc)
Utility.print("All mobs in room are ignored.") Utility.print("All mobs in room are ignored.")
return return
end end
Execute(table.concat(cmds, ";")) local stackChar = GetAlphaOption("command_stack_character")
Execute(table.concat(cmds, stackChar))
end end
@ -348,7 +349,8 @@ end
function Settings.kill_cmd(alias, line, wc) function Settings.kill_cmd(alias, line, wc)
if (wc.setting ~= "") then 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() Settings.save()
end end
Utility.plugin_msg("Kill command:", 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) local cmdStr = string.format("%s %d.'%s'", cmd, mob.index, mob.keywords)
table.insert(cmdList, cmdStr) table.insert(cmdList, cmdStr)
end end
return table.concat(cmdList, ";") local stackChar = GetAlphaOption("command_stack_character")
return table.concat(cmdList, stackChar)
end end
function Settings.get_kill_cmd_str() function Settings.get_kill_cmd_str()
@ -371,7 +374,8 @@ function Settings.get_kill_cmd_str()
local cmdStr = string.format("%s <target>", cmd) local cmdStr = string.format("%s <target>", cmd)
table.insert(cmdList, cmdStr) table.insert(cmdList, cmdStr)
end end
return table.concat(cmdList, ";") local stackChar = GetAlphaOption("command_stack_character")
return table.concat(cmdList, stackChar)
end end
function Settings.mob_keywords_display_all() function Settings.mob_keywords_display_all()

Loading…
Cancel
Save