irc: add IsUnknown function