courgette/big-brother-bot — Issue #59: support new mapList.list command behavior
Author: courgette
Created: 2012-01-21 15:57:39+00:00
State: open
Labels: BF3, major

as announced on http://www.fpsadmin.com/forum/showthread.php?t=24266 the mapList.list command will behave differently and will accept a new parameter : `offset`

## usage

```
mapList.list [offset]
```
If `offset` is not supplied, it is assumed to `0`.
The list command will have the same format as before. However it will not necessarily return all the results. You should perform the list request with higher offset values until you get no entries back.

## pseudo code

```python
index = 0
while True:
result = mapList.list index
numEntries = (result.numWords - 1) / 6
if numEntries == 0
return

addEntriesToInternalList(result)

index += numEntries
```

## other info

The command will return at most X entries (X may be 100 but there is no reason for you to hardcode that).

The current design is to not return the number of entries as a separate word; instead, you need to calculate it from the number of words in the response.