mIRC Home    About    Download    Register    News    Help

Print Thread
#156602 18/08/06 07:21 PM
Joined: Aug 2006
Posts: 24
A
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Aug 2006
Posts: 24
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

#156603 18/08/06 07:41 PM
Joined: Mar 2004
Posts: 210
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Mar 2004
Posts: 210
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.

#156604 19/08/06 01:19 PM
Joined: Aug 2006
Posts: 24
A
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Aug 2006
Posts: 24
hmm I need *!*host

#156605 19/08/06 01:35 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
You won't find a mask that matches that exactly.

For the list of masks, and their returned formats, /help $mask

#156606 19/08/06 02:42 PM
Joined: Aug 2006
Posts: 24
A
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Aug 2006
Posts: 24
*!*@host
this one

#156607 19/08/06 04:21 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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


Link Copied to Clipboard