Mercurial > wow > breuesk
comparison Core.lua @ 21:ffcea2f51663
Delete a list
| author | John@Yosemite-PC |
|---|---|
| date | Fri, 09 Mar 2012 23:33:46 -0500 |
| parents | 3fedb912c088 |
| children | 27cf1355cd6f |
comparison
equal
deleted
inserted
replaced
| 20:3fedb912c088 | 21:ffcea2f51663 |
|---|---|
| 63 end | 63 end |
| 64 if param[1] == "persons" then | 64 if param[1] == "persons" then |
| 65 bsk:PrintPersons() | 65 bsk:PrintPersons() |
| 66 elseif param[1] == "changes" then | 66 elseif param[1] == "changes" then |
| 67 bsk:PrintChanges() | 67 bsk:PrintChanges() |
| 68 elseif param[1] == "delete" then | |
| 69 if param[2] == nil or param[2] == "" or param[3] == nil or param[3] == "" then | |
| 70 bsk:PrintTable(param) | |
| 71 return | |
| 72 end | |
| 73 if param[2] == "list" then | |
| 74 bsk:DeleteList(param[3]) | |
| 75 else | |
| 76 bsk:Print(sformat("Deleting anything of type %s is not supported",param[2])) | |
| 77 end | |
| 68 elseif param[1] == "add" then | 78 elseif param[1] == "add" then |
| 69 if param[2] == nil or param[2] == "" then | 79 if param[2] == nil or param[2] == "" then |
| 70 bsk:PrintTable(param) | 80 bsk:PrintTable(param) |
| 71 return | 81 return |
| 72 end | 82 end |
