Mercurial > wow > breuesk
comparison Core.lua @ 22:27cf1355cd6f
Bugfixes (changes to zero length lists are killing me)
Remove someone from a list
author | John@Yosemite-PC |
---|---|
date | Fri, 09 Mar 2012 23:58:13 -0500 |
parents | ffcea2f51663 |
children | 611808dbc0c0 |
comparison
equal
deleted
inserted
replaced
21:ffcea2f51663 | 22:27cf1355cd6f |
---|---|
70 bsk:PrintTable(param) | 70 bsk:PrintTable(param) |
71 return | 71 return |
72 end | 72 end |
73 if param[2] == "list" then | 73 if param[2] == "list" then |
74 bsk:DeleteList(param[3]) | 74 bsk:DeleteList(param[3]) |
75 elseif param[2] == "personfromlist" then | |
76 if param[4] == nil or param[4] == "" then | |
77 bsk:PrintTable(param) | |
78 return | |
79 end | |
80 local person = FixPersonName(param[3]) | |
81 bsk:RemovePersonFromList(person, param[4]) | |
75 else | 82 else |
76 bsk:Print(sformat("Deleting anything of type %s is not supported",param[2])) | 83 bsk:Print(sformat("Deleting anything of type %s is not supported",param[2])) |
77 end | 84 end |
78 elseif param[1] == "add" then | 85 elseif param[1] == "add" then |
79 if param[2] == nil or param[2] == "" then | 86 if param[2] == nil or param[2] == "" then |