no edit summary
m (Remove singatures made using ~ in main namespace) |
No edit summary |
||
| Line 25: | Line 25: | ||
---- | ---- | ||
__NOTOC__ | __NOTOC__ | ||
Comment by [[user:egingell|egingell]] | |||
The following code does not produce the results I expected. First pass (assume that it should find 10 people) sends 'numWhos = 0 totalCount = 0' to the chat frame. Second pass (assume that it should find 1 person) sends 'numWhos = 10 totalCount = 10' to the chat frame. Third pass sends 'numWhos = 1 totalCount = 1' to the chat frame. GetNumWhoResults() seems to be one step behind [[API SendWho|SendWho]](). | |||
SendWho(filter); | |||
local numWhos, totalCount = GetNumWhoResults(); | |||
DEFAULT_CHAT_FRAME:AddMessage('numWhos = '..tostring(numWhos).. ' totalCount = '..tostring(totalCount)); | |||