All pastes #538473 Raw Edit

blacklist script

public text v1 · immutable
·published 2007-06-05 01:18 UTC
rendered paste body
[script]
n0=on *:TEXT:!blacklist*:#: { 
n1=  if ($nick ishop $chan) || ($nick isop $chan)  { 
n2=    if ($readini(blacklist.ini,ADRESSES,$address($2,2))) { /notice $nick $2 Is already in the blacklist 
n3=    } 
n4=    else { 
n5=      .writeini blacklist.ini ADRESSES $address($2,2) $2  
n6=      /notice $nick $2 has been added to my blacklist 
n7=      ban -ku600 $chan $address($2,2) 
n8=      /notice $2 You are now not welcome on this channel! 
n9=    } 
n10=  } 
n11=} 
n12=on *:JOIN:#: { 
n13=  if ($readini(blacklist.ini,ADRESSES,$address($nick,2))) { 
n14=    ban -ku600 $chan $nick 
n15=    /msg $chan $nick was found in my blacklist and is not welcome on $chan 
n16=    /notice $nick you have received a 10 min ban DO NOT COME BACK you are blacklisted on this channel 
n17=  } 
n18=} 
n19=on *:TEXT:!delblack*:#: { 
n20=  if ($readini(blacklist.ini,ADRESSES,$address($2,2))) { 
n21=    .remini blacklist.ini ADRESSES $address($2,2) 
n22=    /notice $nick $2 has been removed from blacklist 
n23=    /mode $chan -b $address($2,2) 
n24=    /notice $2 You have been unblacklisted by $nick please come back to $chan 
n25=  } 
n26=}