This will make the game crash when you press F6 or F9 on the main menu, since screenshots already work there but global.currentMap is not set yet. I'm also not sure whether it makes sense to include some server name then.