Skip to content
TG007 community snippet #153

Enforce-bans by simo

This will kick all banned users slightly faster since it stores in var and then kick like: kick #channel nick,nick,nick,nick,nick, this is especially usefull when gettin rid of spambots

By Snippets Added Dec 6, 2023
General IRC All snippets
mIRC script 16 lines
About this snippet

Overview

This will kick all banned users slightly faster since it stores in var and then kick
like:

kick #channel nick,nick,nick,nick,nick,

this is especially usefull when gettin rid of spambots
Source code

mIRC script

16 lines · 662 characters
on *:ban:#: {
  if ($regex($banmask,/^\*!\*@\S*irccloud/i)) { halt }
  if ($banmask == *!*@*) { halt }
  if ($banmask == *!@*) { halt }
  if ($banmask == !*@*) { halt }
  if ($banmask == !*@) { halt }
  var %ipro7 = 1, %affect
  while ($ialchan($banmask,$chan,%ipro7).nick) {
    %affect =   $addtok(%affect,$v1,44)
    inc %ipro7 1
  }
  if (%affect) {
    if ($regex($nick,/( $+ $me $+ )/i)) {  if ($nick(#,$me,@%&~)) { var %m 8 | while (%affect) { kick $chan $gettok(%affect,1- %m,44) $nick has banned You )  ( Banmask: $banmask matches You ---  ( $+ $calc(%ipro7 - 1) users where effected  $+ ) | %affect = $deltok(%affect,1- %m,44) } } }

}
}
Community

Comments

Want to join the discussion? Sign in to TG007.
No comments yet. Start the discussion.