Many users need protection and channel management tools, here we supply everyone with the tools and knowledge you'll need to IRC safely and securely operate your channel. There are two sections, one for channel protection and the other for personal protection.
Channel Protection
Personal Protection
Long Text Kicker |
Slow down traffic on your site with a long text kicker. Sometimes you just dont want users writing novels in your channel so this will kick/ban them so they know better. The code below goes into mIRC remotes.
ON *:TEXT:*:#:{ if ($nick isop #) || ($nick isop #ops) || ($nick isop #staff) && ($network != Zemra) { RETURN } if ($len($strip($1-)) >= 300) { ban -u180 # $nick 2 kick # $nick long text detected- keep it under 30 chars } }
Long Action Kicker
ON *:ACTION:*:#:{ if ($nick isop #) || ($nick isop #ops) || ($nick isop #staff) && ($network != Zemra) { RETURN } if ($len($strip($1-)) >= 300) { ban -u180 # $nick 2 kick # $nick long text detected- keep it under 30 chars } }
It's pretty simple, we use $len to determine the length of the text, and if it is greater than 300 characters, we proceed to kick/ban the user. You may modify 300 to a lower or higher limit to fir your needs. The script also ignores ops on the channel, if you wish to include ops, remove exactly $nick !isop # && from the script and you should be fine.
If you wish to be nice, it may be a good idea to $strip the text as well. That would remove all the bolds, colors, underlines...etc from the text, making the script less sensative. It's up to you.
If you find any errors or have any questions/comments, please contact us via email, memo, or our script forum. Thanks for your time.