Can someone fix this code to where you can turn the auto spec on & off for each flood. And control it from the menubar.
********************************************************************
#autospec on
on *:part:#:{
inc -u3 %as.h. [ $+ [ $address ] ]
}
on *:join:#:{
inc -u3 %as.h. [ $+ [ $address ] ]
if (%as.h. [ $+ [ $address ] ] > 6) {
mode $chan -v $nick
privmsg $nick You have been AutoSpecked for 10 Minutes (Hop-Flooding)
.timeras.h. [ $+ [ $address ] ] 1 600 mode $msn.get($cid,room) +v $nick
}
}
raw 821:*:{
inc %as.a. [ $+ [ $address ] ]
if (%as.h. [ $+ [ $address ] ] > 10) {
mode $comchan($nick,1) -v $nick
privmsg $nick You have been AutoSpecked for 10 Minutes (Away-Flooding)
.timeras.v. [ $+ [ $address ] ] 1 600 mode $msn.get($cid,room) +v $nick
}
}
raw 822:*:{
inc -u2 %as.a. [ $+ [ $address ] ]
if (%as.h. [ $+ [ $address ] ] > 10) {
mode $comchan($nick,1) -v $nick
privmsg $nick You have been AutoSpecked for 10 Minutes (Away-Flooding)
.timeras.v. [ $+ [ $address ] ] 1 600 mode $msn.get($cid,room) +v $nick
}
}
on *:TEXT:*:#:{
inc -u2 %as.t. [ $+ [ $address ] ]
if (%as.t. [ $+ [ $address ] ] > 15) {
mode $chan -v $nick
privmsg $nick You have been AutoSpecked for 10 Minutes (Text-Flooding)
.timeras.v. [ $+ [ $address ] ] 1 600 mode $msn.get($cid,room) +v $nick
}
elseif (*groups.msn.com* iswm $1-) || (*chat.msn.com* iswm $1-) {
mode $chan -v $nick
privmsg $nick You have been AutoSpecked for 10 Minutes (Advertising)
.timeras.v. [ $+ [ $address ] ] 1 600 mode $msn.get($cid,room) +v $nick
}
}
#autospec end