Tchatting.com Forums
mIRC :: SCRIPTING & HELP mIRC Scripting help, General help, Tips and Tricks!

User Name
Password
Reply
 
Thread Tools Display Modes
  #1  
Old 18-08-2005, 07:26 PM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,116
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Exclamation Repeat Protection

on @*:TEXT:*:#:{
if ($nick !isreg $chan) { return }
var %ST.tr = $strip($1-)
inc -u5 %ST.rp. [ $+ [ $hash($nick $chan %ST.tr,32) ] ]
if (%ST.rp. [ $+ [ $hash($nick $chan %ST.tr,32) ] ] == 3) {
ban # $nick 2
kick # $nick Repeating ( $+ $ifmatch in less then 5 Seconds)
}
}
__________________
Reply With Quote
  #2  
Old 21-11-2005, 07:29 PM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,116
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Re: Repeat Protection

edited, better performance

PHP Code:
on @*:TEXT:*:#:repprt $1-
on @*:NOTICE:*:#:repprt $1-
on @*:ACTION:*:#:repprt $1-

alias repprt {
  if (
$nick !isreg $chan) { return }
  var %
ST.tr = $strip($1-)
  
inc -u9 %ST.rp. [ $+ [ $hash($nick $chan %ST.tr,32) ] ]
  if (%
ST.rp. [ $+ [ $hash($nick $chan %ST.tr,32) ] ] == 3) {
    
ban # $nick 2   
    
kick # $nick Repeating
  
}
}
__________________
Reply With Quote
  #3  
Old 21-11-2005, 09:30 PM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,116
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Re: Repeat Protection

Code:
ON @*:TEXT:*:#: { 
   if ($nick !isreg $chan) { halt }
    repeatcheck $1- 
  } 
ON @*:ACTION:*:#: { 
  if ($nick !isreg $chan) { halt }
    repeatcheck $1- 
  } 
ON @*:NOTICE:*:#: { 
  if ($nick !isreg $chan) { halt }
    repeatcheck $1- 
} 
alias repeatcheck { 
  if (!$hget(repeatcheck)) { hmake repeatcheck 100 } 
  var %m = $+($md5($1-),$site,$cid,$chan) 
  hinc -u15 repeatcheck %m 
  var %i = $hget(repeatcheck,%m) 
  if (%i >= 3) { 
ban -ku300 $chan $nick 2 Please stop repeating 
} 
}
__________________
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Request] Channel Flood Protection AYEHAN mIRC :: SCRIPTING & HELP 12 07-04-2006 06:34 PM
Query Flood Protection Cult mIRC :: SCRIPTING & HELP 2 22-08-2005 12:17 PM
Company Offers Workaround for Sony's CD Copy Protection Thugilex Technical Forum, Technical Aspects and Information 0 21-06-2005 08:43 PM
Microsoft seeks protection from spyware firms Password Technical Forum, Technical Aspects and Information 0 25-05-2005 09:11 AM
[CNN LATEST] Panda protection goes high-tech Articles Main Forum 0 04-04-2005 02:00 PM

All times are GMT. The time now is 10:32 PM.
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
All data and information are copyright of DOTLeb Network