This is the second snippet I have posted today. It is very, very simple. I was actually looking for some feedback on this because I didn't quite know how to code it to where only people with 100 access and lower would be kicked from the anti-spam protection. So please feel free to leave comments stating how I could go about rearranging my snippet. Thanks!
on *:TEXT:*:#Channel: {
if (%flood2. [ $+ [ $wildsite ] ] == $null) {
set -u5 %flood2. [ $+ [ $wildsite ] ] 1
}
elseif (%flood2. [ $+ [ $wildsite ] ] >= 10) {
kick $chan $nick Anti-flood protection has been activated.
unset %flood2. [ $+ [ $wildsite ] ]
}
else { inc -u5 %flood2. [ $+ [ $wildsite ] ] }
}
Edit:
on :TEXT::#Channel: {
if ($ulevel <= 100) {
if (%flood2. [ $+ [ $wildsite ] ] == $null) {
set -u5 %flood2. [ $+ [ $wildsite ] ] 1
}
elseif (%flood2. [ $+ [ $wildsite ] ] >= 10) {
kick $chan $nick Anti-flood protection has been activated.
unset %flood2. [ $+ [ $wildsite ] ]
}
else { inc -u5 %flood2. [ $+ [ $wildsite ] ] }
}
}
Got what I was looking for. Thanks for the help mountaindew. :)