In this thread qwerty explains the advanced $nick(...) flags.