Mercurial > wow > reaction
comparison modules/Action.lua @ 188:d58055179c16
Removed stray debugging prints
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Thu, 11 Nov 2010 21:31:08 -0800 |
| parents | df68b5a40490 |
| children | e63aefb8a555 |
comparison
equal
deleted
inserted
replaced
| 187:6341ab2be68b | 188:d58055179c16 |
|---|---|
| 512 end | 512 end |
| 513 | 513 |
| 514 | 514 |
| 515 local function ParseMultiID(nBtns, nPages, s) | 515 local function ParseMultiID(nBtns, nPages, s) |
| 516 if s:match("[^%d%s,;]") then | 516 if s:match("[^%d%s,;]") then |
| 517 ReAction:Print("items other than digits, spaces, commas, and semicolons in string",s) | |
| 518 return nil | 517 return nil |
| 519 end | 518 end |
| 520 local p = { } | 519 local p = { } |
| 521 for list in s:gmatch("[^;]+") do | 520 for list in s:gmatch("[^;]+") do |
| 522 local pattern = ("^%s?$"):format(("%s*(%d+)%s*,"):rep(nBtns)) | 521 local pattern = ("^%s?$"):format(("%s*(%d+)%s*,"):rep(nBtns)) |
| 523 local ids = { list:match(pattern) } | 522 local ids = { list:match(pattern) } |
| 524 if #ids ~= nBtns then | 523 if #ids ~= nBtns then |
| 525 ReAction:Print("found",#ids,"buttons instead of",nBtns) | |
| 526 return nil | 524 return nil |
| 527 end | 525 end |
| 528 table.insert(p,ids) | 526 table.insert(p,ids) |
| 529 end | 527 end |
| 530 if #p ~= nPages then | 528 if #p ~= nPages then |
| 531 ReAction:Print("found",#p,"pages instead of",nPages) | |
| 532 return nil | 529 return nil |
| 533 end | 530 end |
| 534 return p | 531 return p |
| 535 end | 532 end |
| 536 | 533 |
