Hello,
I have this code but I would like to create an alias to del the user from the blacklist.
the format would be: $blacklist(del,$gettok($ial($$2,1),1,64))
alias blacklist {
if ($1 == check) {
var %addr = $gettok($ial($$2,1),1,64)
var %line = $read($scriptdirblacklist.txt,w,%addr)
if (%line) return $true
else return $false
}
elseif ($1 == set) {
if (!$isfile(blacklist.txt)) write -c blacklist.txt
var %addr = $gettok($ial($$2,1),1,64)
var %line = $read($scriptdirblacklist.txt,w,%addr)
if (!%line) write $scriptdirblacklist.txt $gettok($ial($$2,1),1,64) $3-
}
}
on 1:join:#:{
if ($blacklist(check,$nick) == $true) { kick # $nick : [-BlackListed-] }
}
Any help is greatly appreciated.
Thanks a bunch.
J
Last edited by Buggs2008; 24/11/07 11:56 PM.