Just to explain a bit for you...
You don't need $hfind at all if you're saving the masks as items.
if ($hget(hashtable,mask)) { commands to ignore the person }
Replace hashtable with the name of your hash table and replace mask with however you're getting the mask (such as $address($nick) or $address($nick,2) or whatever).
An example would be:
if ($hget(Ignores,$address($nick)) { commands to ignore }
Because $hget(table,item) will output data if it's there or $null if it's not there, you're basically searching for it with that one command. Here's an expanded version of it that may make more sense...
if ($hget(Ignores,$address($nick) == $null) { commands to ignore }
They mean the same thing in this game (unless your store 0 or $false as the data for a mask). Since you aren't likely to store those as the data for the mask, you don't need the == $null part. To be on the "safe" side, you can include it and then you can store 0 or $false as the data if you want to and it won't make the script not work for that mask.