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

User Name
Password
Reply
 
Thread Tools Display Modes
  #1  
Old 21-10-2005, 07:30 PM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,124
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
Caps Flood

;Capital letters protection

Code:
alias caps { 
  set -l %caps $regex(caps,$strip($1-),/[A-Z]/g) 
  set -l %norm $regex(caps,$strip($1-),/[^A-Z]/g) 
  set -l %total $len($strip($1-)) 
  if ($prop == caps) { return %caps } 
  elseif ($prop == ncaps) { return %norm } 
  else { return $calc((%caps / %total) * 100) } 
} 
on *:text:*:#:{ 
  if ($nick isop $chan) { halt } 
  elseif { ($caps($1-) > 50) && ($len($strip($1-)) >= 6)) { 
      ban $chan $nick 
      kick $chan $nick Caps flood detected. $caps($1-) $+ % in sentence are capitalized. 
    } 
  } 
}
__________________

Last edited by Cult; 21-11-2005 at 09:09 PM.
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
Caps Flood Cult mIRC :: SCRIPTING & HELP 4 06-11-2006 02:25 PM
[Request] Channel Flood Protection AYEHAN mIRC :: SCRIPTING & HELP 12 07-04-2006 06:34 PM
flood pro Cult mIRC :: SCRIPTING & HELP 0 07-02-2006 11:11 AM
Query Flood Protection Cult mIRC :: SCRIPTING & HELP 2 22-08-2005 12:17 PM
Action flood shiah mIRC :: SCRIPTING & HELP 0 25-03-2005 07:35 PM

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