If I recall correctly, /map was a command that performed roughly the same function as /links but slightly more graphically. If this is the /map command you refer to, you can retrieve the numerics for it (/debug -p @Debug) and do your did -a dname did $2- in there.
For instance, on EFnet, it's numeric 015 that you would use:
raw 015:*: did -a MapDialog 2 $remove($2-, |, -, `,)