Not seeking to resurrect this topic. But for those who come one day later, a new feature now exists in PennMUSH which allows this behavior more easily: help monikers
You can lean on the moniker() function, or fall back on the default exit format, for this functionality.