Mercurial > wow > breuesk
comparison Core.lua @ 30:7b01c9b2b411
"nuke" command and implementation
author | John@Yosemite-PC |
---|---|
date | Sun, 11 Mar 2012 17:47:59 -0400 |
parents | eb3a3f69559e |
children | d27c28e5f964 |
comparison
equal
deleted
inserted
replaced
29:731182d55b6c | 30:7b01c9b2b411 |
---|---|
83 local person = FixPersonName(param[3]) | 83 local person = FixPersonName(param[3]) |
84 bsk:RemovePerson(person) | 84 bsk:RemovePerson(person) |
85 else | 85 else |
86 bsk:Print(sformat("Deleting anything of type %s is not supported",param[2])) | 86 bsk:Print(sformat("Deleting anything of type %s is not supported",param[2])) |
87 end | 87 end |
88 elseif param[1] == "nuke" then | |
89 if param[2] == nil or param[2] == "" then | |
90 bsk:PrintTable(param) | |
91 return | |
92 end | |
93 local person = FixPersonName(param[2]) | |
94 bsk:NukePerson(person) | |
88 elseif param[1] == "add" then | 95 elseif param[1] == "add" then |
89 if param[2] == nil or param[2] == "" then | 96 if param[2] == nil or param[2] == "" then |
90 bsk:PrintTable(param) | 97 bsk:PrintTable(param) |
91 return | 98 return |
92 end | 99 end |