How would i go about createing a script that checks unbans to see if they wildcard match ones in a hashtable and if they do reban them?
on @:UNBAN:#channel: {
if ($hmatch(banlist,$banmask,1)) { .ban $chan $banmask }
}
Note: this code is untested but you should get the idea.
I made this complete script.
On @akick:join:#:mode # -o $nick | ban # $wildsite | kick # $nick Auto kicked.
menu nicklist {
auto kick
.Add
..add host:/auser akick $address($$1,2) | kick # $$1
..add ident:/auser akick $address($$1,3) | kick # $$1
.Del
..delete all:/rlevel akick
..delete one:/ruser akick $$?="hostname:"
.list:/ulist akick
}