on @*:JOIN:#:{
var %bl.taddress $address($nick,9)
if $hfind(blacklist,%bl.taddress,1,W) {
echo -s $nick is blacklisted
}
}
It is fairly simple code (I won't be adding the "good" stuff in until I can get this to work), however, I have been using it to no luck.
The statement is not being echoed.
This is the htable.
/hmake -s blacklist 100
/hadd -s blacklist nickname $address(nickname,9)
I am also saving this atm.
/hsave -s blacklist hash_tables\blacklist.txt
*EDIT*on @*:JOIN:#: {
if ( $hget(blacklist,$nick) ) {
mode $chan +b $mask($fulladdress,3)
kick $chan $nick blacklisted nick
}
}
The $hget(blacklist,$nick) works. However, I would like to know if it is possible to use a single hash table to store the banmask and a reason for the ban, and retrieve that information along with the nickname?
Cheers.