I'm writing up a Blacklist using Hash Tables;
The Table's name is blacklist, and when I add a nick/address I'm using;
/hadd -m blacklist address reason
In my events I have;
on @*:join:#: {
if ($hmatch(blacklist,$address($nick,5))) {
ban # $nick 2
kick # $nick Blacklisted: (reason goes here)
}
}
What I am having trouble with, is recalling the value (reason) for the item (address) returned by $hmatch.
If you could point out a solution to this problem for me, it would be much appreciated.