i need a script that will check certain ip starting on join. if the users have that ip starting, it will shun and ban address for 180 sec with a notice but the script will ignore those who are serverop and voice members of the channel even they join with the same ip starting. this is what i was trying to do. any idea what is wrong here?
on @*:JOIN:#:{
if (*@85.* iswm $address) || (*@68.47.* iswm $address) || (*@193.* iswm $address) {
if (*@68.47.193.* iswm $address) || (*@68.47.147.* iswm $address) || (*@85.86.166.* iswm $address) ||(*@193.229.* iswm $address) || ($nick isop #) || ($nick isvoice #) return
else { shun $address 180 | ban -u180 # $address($nick, 14) | .notice $nick You aren't welcome! }
}
}