Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias -l chans { return #SWGhost }
- alias -l flood_reps { return 3 }
- alias -l flood_secs { return 6 }
- ON @*:TEXT:*:$($chans): {
- tokenize 32 $strip($1-)
- var %md5 = $md5($1-)
- var %old_md5 = $evalnext($+(%,flood,_,$nick,_,msg))
- if (%old_md5) && (%old_md5 !== %md5) { return }
- set $+(-eu,$flood_secs) $+(%,flood,_,$nick,_,msg) %md5
- inc $+(-eu,$flood_secs) $+(%,flood,_,$nick,_,reps) 1
- var %t = $evalnext($+(%,flood,_,$nick,_,reps))
- if (%old_md5) && (%old_md5 !== %md5) && (%t) { unset $+(%,flood,_,$nick,_,reps) }
- if (%t >= $flood_reps) {
- inc -e $+(%,flood,_,$nick,_,rep_warns) 1
- var %w = $evalnext($+(%,flood,_,$nick,_,rep_warns))
- if (%w == 1) {
- describe $chan Has muted $nick (This is your $ord(%w) warning, 5 minutes ban for repeating!)
- ban -u300 $chan $nick 3
- msg $nick you have been muted for 5 mins due to spaming ! restarting client while an auto mute will cause for you a ban for the rest of mute duration!
- break
- }
- if (%w == 2) {
- describe $chan Has muted $nick (This is your $ord(%w) warning, 10 minutes ban for repeating!)
- ban -u600 $chan $nick 3
- msg $nick you have been muted for 10 mins due to spaming! restarting client while an auto mute will cause for you a ban for the rest of mute duration!
- break
- }
- if (%w >= 3) {
- describe $chan Has muted $nick (Some peole don't listen, 15 minutes ban for repeating!)
- ban -ku900 $chan $nick 3 Some peole don't listen, 15 minutes ban for flooding!
- msg $nick you have been muted for 15 mins due to spaming! restarting client while an auto mute will cause for you a ban for the rest of mute duration! if you keep acting likethis you may get ban from an admin
- break
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement