Mercurial > wow > breuesk
comparison Lists.lua @ 30:7b01c9b2b411
"nuke" command and implementation
author | John@Yosemite-PC |
---|---|
date | Sun, 11 Mar 2012 17:47:59 -0400 |
parents | 731182d55b6c |
children | d27c28e5f964 |
comparison
equal
deleted
inserted
replaced
29:731182d55b6c | 30:7b01c9b2b411 |
---|---|
603 if v then | 603 if v then |
604 bsk:AddPersonToListRandom(bsk.persons[i].main,list.name) -- TODO: APTLR keys off of string names. probably need to change this. | 604 bsk:AddPersonToListRandom(bsk.persons[i].main,list.name) -- TODO: APTLR keys off of string names. probably need to change this. |
605 end | 605 end |
606 end | 606 end |
607 end | 607 end |
608 | |
609 function bsk:NukePerson(name) -- delete from all lists and then from persons | |
610 local pid = personName2id[name] | |
611 for i,v in pairs(bsk.lists) do | |
612 bsk:RemovePersonFromList(name,v.name) | |
613 end | |
614 bsk:RemovePerson(name) | |
615 end | |
608 --}}} | 616 --}}} |
609 -- "Soft" actions- ie things that cause nonpermanent state {{{ | 617 -- "Soft" actions- ie things that cause nonpermanent state {{{ |
610 | 618 |
611 -- reserves | 619 -- reserves |
612 function bsk:AddReserve(name) | 620 function bsk:AddReserve(name) |