mIRC Homepage
Posted By: AivarasB banmask - 18/08/06 07:21 PM
sorry for my bad english smile can u make a code which help me kick banned users, when someone ban mask my script kick all users with baned banmask
Posted By: FNar Re: banmask - 18/08/06 07:41 PM
If you're kicking masks, as opposed to nicks, you'll kick everyone matching that mask, so you have to choose a mask that only matches the person you want to kick.
Posted By: AivarasB Re: banmask - 19/08/06 01:19 PM
hmm I need *!*host
Posted By: RusselB Re: banmask - 19/08/06 01:35 PM
You won't find a mask that matches that exactly.

For the list of masks, and their returned formats, /help $mask
Posted By: AivarasB Re: banmask - 19/08/06 02:42 PM
*!*@host
this one
Posted By: RusselB Re: banmask - 19/08/06 04:21 PM
Untested:
Code:
 menu channel,nicklist {
  Kick Banned : k_banned $chan
}
alias k_banned {
  var %a = 1, %b = $ibl($1,0)
  while %a <= %b {
    var %c = 1, %d = $nick($1,0)
    while %c <= %d {
      if ($address($nick($1,%c),2) iswm $ibl($1,%a)) && ($nick($1,%c) != $me) {
        if $me isop $1 {
          kick $1 $nick($1,%c) Banned host detected
        }
      }
      inc %c
    }
    inc %a
  }
}
 


Usage: right click in channel or nicklist and select Kick Banned
Will not kick you and requires you to have full ops in the channel
© mIRC Discussion Forums