You need to end the object, the addmodule, and the module itself (that's 3 ends), it also helps if you indent your code so that lines which open and end are on the same level and everything inside is indented (usually by two presses of the spacebar).
Also (I'm not certain so let me check) I think your addmodule might need to specify a module tag (don't hold me to that, I don't usually deal with map.inis so add, modify, and remove module tags are still a bit new)
Originally Posted by: klingondragon