on *:TEXT:!blacklist*:#: {
if ($nick ishop $chan) || ($nick isop $chan) {
if ($readini(blacklist.ini,$chan,$address($2,2))) { /notice $nick $2 12Is already in the blacklist
}
else {
.writeini blacklist.ini $network $chan $address($2,2) $2
/notice $nick 4 $2 12has been added to my blacklist
ban -ku600 $chan $address($2,2)
/notice $2 12You are now not welcome on this channel!
}
}
}
on *:JOIN:#: {
if ($readini(blacklist.ini,$chan,$address($2,2))) {
ban -ku600 $chan $nick
/msg $chan 4 $nick 12was found in my blacklist and is not welcome on $chan
/notice $nick 12you have received a 410 min ban 12DO NOT COME BACK you are blacklisted on this channel
}
}
on *:TEXT:!delblack*:#: {
if ($nick isop $chan) || ($nick ishop $chan) {
if ($readini(blacklist.ini,$chan,$address($2,2))) {
.remini blacklist.ini $network $chan $address($2,2) $2
/notice $nick 4 $2 12has been removed from blacklist
/mode $chan -b $address($2,2)
/notice $2 12You have been unblacklisted by $nick please come back to $chan
}
}
}