on me:*:join:#: {
if $ini(black.ini,bans,$chan) {
part $chan $c1 This channel has Been blacklisted To have this removed please contact $c2 J-DreamO $c1.
}
else {
if ($chan != #bots) {
if ($($+(%,kick.,$chan),2)) var %left = $+($calc(5 - $v1),/5)
else var %left = 5/5
.msg # $c1 If i am kicked $c2 5 $c1 Times this channel will be blacklisted Number of kicks left $c2 %left
}
}
}
on *:TEXT:!addchan *:#: {
if ($address($nick,2) == $address($me,2)) {
if $ini(black.ini,bans,$2) {
notice $nick $2 is Already blacklisted
}
else {
writeini -n black.ini bans $2 banned
msg $chan $c2 $+ $2 $c1 $+ has been Succesfuly added to the blacklist by - $c2 $+ $nick
}
}
}
on *:TEXT:!delchan *:#: {
if ($address($nick,2) == $address($me,2)) {
if $ini(black.ini,bans,$2) {
remini black.ini bans $2 banned
msg $chan $c2 $+ $2 $c1 $+ has been Succesfuly Removed from the blacklist by - $c2 $+ $nick
}
else {
notice $nick $2 is not blacklisted
}
}
}
on *:TEXT:!viewblist*:#: {
if ($address($nick,2) == $address($me,2)) {
if (!$2) notice $nick Please Specify a channel to lookup.
elseif ($ini(black.ini,bans,$2)) notice $nick $2 is blacklisted
else notice $nick Channel does not appear in the blacklist
}
}