courgette/big-brother-bot — Issue #60: !nextmap error on BF3 if rotation list is empty
Author: courgette
Created: 2012-01-21 23:32:25+00:00
State: open
Labels: BF3

on BF3, the `!nextmap` command responds with `There was an error processing your command` when the current rotation list is empty

## log
```
27:42	CONSOLE	'1\t: !nextmap'
27:42	VERBOSE	'Queueing event Private Message !nextmap'
27:42	VERBOSE	'Parsing Event: Private Message: AdminPlugin'
27:42	DEBUG	'AdminPlugin: OnSay handle 7:"!nextmap"'
27:42	DEBUG	'AdminPlugin: Handle command !nextmap'
27:42	VERBOSE	u"RCON :\t ('mapList.list',)"
27:42	VERBOSE	u"RCON response:\t ['0', '3']"
27:42	VERBOSE	u"RCON :\t ('mapList.getMapIndices',)"
27:42	VERBOSE	u"RCON response:\t ['0', '0']"
27:42	ERROR	"handler AdminPlugin could not handle event Private Message: IndexError: list index out of range [('C:\\\\Users\\\\Thomas\\\\workspace-pycharm\\\\big-brother-bot\\\\b3\\\\parser.py', 1002, 'handleEvents', 'hfunc.parseEvent(event)'), ('C:\\\\Users\\\\Thomas\\\\workspace-pycharm\\\\big-brother-bot\\\\b3\\\\plugin.py', 158, 'parseEvent', 'self.onEvent(event)'), ('C:\\\\Users\\\\Thomas\\\\workspace-pycharm\\\\big-brother-bot\\\\b3\\\\plugin.py', 176, 'onEvent', 'self.handle(event)'), ('C:\\\\Users\\\\Thomas\\\\workspace-pycharm\\\\big-brother-bot\\\\b3\\\\plugins\\\\admin.py', 231, 'handle', 'self.OnSay(event, True)'), ('C:\\\\Users\\\\Thomas\\\\workspace-pycharm\\\\big-brother-bot\\\\b3\\\\plugins\\\\admin.py', 374, 'OnSay', 'results = command.execute(data, event.client)'), ('C:\\\\Users\\\\Thomas\\\\workspace-pycharm\\\\big-brother-bot\\\\b3\\\\plugins\\\\admin.py', 2019, 'execute', 'self.func(data, client, copy.copy(self))'), ('C:\\\\Users\\\\Thomas\\\\workspace-pycharm\\\\big-brother-bot\\\\b3\\\\plugins\\\\admin.py', 1790, 'cmd_nextmap', 'mapname = self.console.getNextMap()'), ('C:\\\\Users\\\\Thomas\\\\workspace-pycharm\\\\big-brother-bot\\\\b3\\\\parsers\\\\frostbite2\\\\abstractParser.py', 1182, 'getNextMap', 'nextmap = mapnames[int(mapIndices[1])]')]"
```