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
Seen Script Kicker |
Written by DeviL |
Keep your channel's traffic low and kick/ban users who trigger other user's seen scripts. This could cause bots and scripts to flood the channel with results. This code should catch these users and remove them. The code below goes into mIRC remotes.
on @*:TEXT:*:#:{ if ($nick !isop #) { if ($1 == seen) { kick $chan $nick Do not use $ifmatch here. | ban $chan $nick 2 } elseif ($1 == !seen) { kick $chan $nick Do not use $ifmatch here. | ban $chan $nick 2 } elseif ($1 == .seen) { kick $chan $nick Do not use $ifmatch here. | ban $chan $nick 2 } } }
The script listens to text on a channel you're op on. If mIRC detects a user attempting to use the seen scripts, we proceed to kick/ban that user. Op's on the channel are exempt according to the script. The entire code is exlained below.
on @*:TEXT:*:#:{ if ($nick !isop #) { ;triggers when someone speaks in a chan and is not opped if ($1 == seen) { kick # $nick Do not use $ifmatch here. | ban # $nick 2 } ;checks if the first word spoken was "seen" elseif ($1 == !seen) { kick # $nick Do not use $ifmatch here. | ban # $nick 2 } ;checks if the first word spoken was "!seen" elseif ($1 == .seen) { kick # $nick Do not use $ifmatch here. | ban # $nick 2 } ; checks if the first word spoken was ".seen" } }