Skip to content
MSN Addons Archive

Msn addons

A TG007 community discussion started by Ozzy10.

Closed discussion 42 posts
Page 3 of 3
Closed
Topic #6 · 42 published posts · 10,446 views

No-Flood Repet.

No More > 3 fast repet

No Vincula

 

;;;CCS - No-Flood Repet.

;;;NOT FOR VINCULA

#ccsrepet on

on ^*:TEXT:*:#:{

if ($nick == $chan) halt

if ($nick == $me) halt

if ($nick isowner #) halt

if ($nick isop $comchan($nick,1)) halt

set %ccsmots2 $strip($1-)

if (%ccsmots2 != $null) {

set -u5 %ccsrepet. [ $+ [ $address($nick,1) ] ] $calc( %ccsrepet. [ $+ [ $address($nick,1) ] ] + 1)

if (%ccsrepet. [ $+ [ $address($nick,1) ] ] == 1) {

/set %ccsmotest %ccsmots2 | return

}

if (%ccsrepet. [ $+ [ $address($nick,1) ] ] == 2) {

if (%ccsmots2 == %ccsmotest) { return }

if (%ccsmots2 != %ccsmotest) {

/set %ccsmotest %ccsmots2

/set -u5 %ccsrepet. [ $+ [ $address($nick,1) ] ] 1 | return

}

}

if (%ccsrepet. [ $+ [ $address($nick,1) ] ] == 3) {

if (%ccsmots2 == %ccsmotest) {

/kick $comchan($nick,1) $nick -=[Flood]=-

/unset %ccsrepet. [ $+ [ $address($nick,1) ] ]

}

if (%ccsmots2 != %ccsmotest) {

/set %ccsmotest %ccsmots2

/set -u5 %ccsrepet. [ $+ [ $address($nick,1) ] ] 1 | return

}

}

}

}

on ^*:ACTION:*:#:{

if ($nick == $chan) halt

if ($nick == $me) halt

if ($nick isowner #) halt

if ($nick isop $comchan($nick,1)) halt

set %ccsmots2 $strip($1-)

if (%ccsmots2 != $null) {

set -u5 %ccsrepet. [ $+ [ $address($nick,1) ] ] $calc( %ccsrepet. [ $+ [ $address($nick,1) ] ] + 1)

if (%ccsrepet. [ $+ [ $address($nick,1) ] ] == 1) {

/set %ccsmotest %ccsmots2 | return

}

if (%ccsrepet. [ $+ [ $address($nick,1) ] ] == 2) {

if (%ccsmots2 == %ccsmotest) { return }

if (%ccsmots2 != %ccsmotest) {

/set %ccsmotest %ccsmots2

/set -u5 %ccsrepet. [ $+ [ $address($nick,1) ] ] 1 | return

}

}

if (%ccsrepet. [ $+ [ $address($nick,1) ] ] == 3) {

if (%ccsmots2 == %ccsmotest) {

/kick $comchan($nick,1) $nick -=[Flood]=-

/unset %ccsrepet. [ $+ [ $address($nick,1) ] ]

}

if (%ccsmots2 != %ccsmotest) {

/set %ccsmotest %ccsmots2

/set -u5 %ccsrepet. [ $+ [ $address($nick,1) ] ] 1 | return

}

}

}

;;;by C-drykâ„¢

}

#ccsrepet end

Edited May 20, 2004 4:09 PM by C-drykâ„¢

dont know why you are unsetting the vars in the away onjoin

 

-u10 unsets the var after 10 seconds anyway and if they rejoin while its set, it will restart the 10 second timer

so there is no need to unset it tongue.gif

 

 

heres mine

 

on *:JOIN:#: {
 set -u10 %ozawaynick. [ $+ [ $nick ] ] $nick
}
raw 822:*: {
 if (%ozawaynick. [ $+ [ $nick ] ] == $nick) { 
 access $msn.get($cid,fullroom) ADD DENY $address 1
kick $msn.get($cid,fullroom) $nick :Dont enter room and then go straight in your cup, its rude(Access ban set for 1 minute)
}
}

Edited May 19, 2004 4:49 PM by ozzy

My code does NOT have bugs. It just develops random features.