Howdy.


I'm an intermediate level mIRC scripter, and have finished making a user based blacklister that bans a joining nick (if it's in the list), or ignore's a nick, depending on if the user is a Channel OP or not.


However, I would like to turn this into a hash table based method. One that preferably allows me to set the ban mask, and the reason all within the one hash table.

I had attempted one previously by making a hash table, and just running a quick on JOIN statement:

Code:
on @*:join:%bh.chan:{
  var %bl.taddress = $address($nick,5)
  if $hmatch(blacklist, %bl.taddress, 1) {
    echo -a $nick is bl.
  }
}


However, for unknown reasons, it didn't work.

I am wondering if anyone would be able to point me into the right direction, or even provide a sample file.


Cheers.