Enforce-bans

By simo on Jul 01, 2017

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

Cappuccino.

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

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.