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. :)
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!
Hi, I'd just like to start off by saying I'm new to Hawkee and I'm very excited to join, but I've been practicing lately on my coding and have gotten a few snippets done. This one here is very sample. It is an anti-advertisement Bot that protects your channel from any user without access who spams a channel name or a website link beginning with 'www.' or 'http'. First time this happens the Bot simply..