Don't require the list of generic usernames in sysconf to need to be ordered to guard against false substring matches. If the list was "nethacker nethack" and the tentative character name was "nethack", it wouldn't be recognized as generic. The old code forced the list to be "nethack nethacker" for the matching to work correctly because it only checked the first matching substring. Either order works now. It also failed to recognize a generic name if the player used |nethack -u nethack-samurai-human-male-lawful because it checked for generic names before stripping off the role aspects. Now that will at least recognize the name as generic and prompt with "who are you?", but the role/race/&c info gets discarded.
131 KiB
131 KiB