Mercurial > wow > breuesk
changeset 14:030694ddc6c9
More commands to the CLI
author | John@Doomsday |
---|---|
date | Thu, 08 Mar 2012 08:34:59 -0500 |
parents | e62cbf3a0c07 |
children | dbfb8f2052b6 |
files | Core.lua |
diffstat | 1 files changed, 13 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Core.lua Thu Mar 08 08:30:24 2012 -0500 +++ b/Core.lua Thu Mar 08 08:34:59 2012 -0500 @@ -115,15 +115,24 @@ local person = FixPersonName(param[2]) bsk:Print(string.format("Fixed player name %s to %s",param[2],person)) bsk:SuicidePerson(person,param[3]) - elseif param[1] == "show" then + elseif param[1] == "lists" then if param[2] == nil or param[2] == "" then - bsk:PrintTable(param) + bsk:PrettyPrintLists() + return + else + local listIndex = bsk:GetListIndex(param[2]) + bsk:PrettyPrintList(listIndex) + end + elseif param[1] == "reserve" then + if param[2] == nil or param[2] == "" then + bsk:printtable(param) return end - bsk:PrettyPrintLists(param[2]) + local person = FixPersonName(param[2]) + bsk:AddReserve(person) elseif param[1] == "trim" then if param[2] == nil or param[2] == "" then - bsk:PrintTable(param) + bsk:printtable(param) return end bsk:TrimLists(param[2])