The code I gave will ignore anyone that has voice, half-op, op, etc. Only those that are classified as regular users will not be ignored (read up on /help nick and address identifiers, specifically $nick(#,N/nick,aohvr,aohvr).
As to the other use the mask option (which would follow the $nick identifier in the ignore command) and use the type of mask you prefer. Reference /help $mask for options.
Alternatively, you can specify the address format that you want to use in place of the $nick identifier, but personally I would recommend using a mask rather than specifying the address.