| Arcades | Library | Travel | MP3 | Directory | Horoscope | Downloads | Mobile | Movies | Gallery | PHP Group |
| mIRC :: SCRIPTING & HELP mIRC Scripting help, General help, Tips and Tricks! |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
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. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |