The original else clause was correct -- both dashes and underscores are accepted in Less Wrong usernames.  Even if you want to explicitly identify the problem characters with `elif`, the `if` statement would still need an `else` to be exhaustive (later code assumes `wikiname` is populated).