Normally the title of the room for the map plugin is green, but it turns red when you enter a magic walled forsaken room like the cobra pit in Raganatittu.
How does it check that?
In the underdark you can't recall but the text is still green, it only goes red when there are magic walls.
Would like to know how it's done.