mIRC Home    About    Download    Register    News    Help

Print Thread
#141704 12/02/06 09:37 AM
Joined: Jan 2006
Posts: 10
N
Pikka bird
OP Offline
Pikka bird
N
Joined: Jan 2006
Posts: 10
I've been trying to figure out how an remote that automatically kicks any user whose address matches a new ban. For example, let's say an op bans *!*@*.aol.com. My remote would automatically kick anybody matching this host. Make sense? Thanks a lot for the help. grin

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
 on *:ban:#:{
var %a = $ial($banmaak,0)
while %a {
.kick # $ial($banmask,%a).nick
dec %a
}
}
 


UNTESTED

Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Code:
on *:BAN:#:{
  var %i = 1, %users = $nick($chan,0)
  var %sban = $remove($2,*.,*!*,@)
  while (%i <= %users) {
    if (%sban isin $address($nick($chan,%i),2)) {
      .kick $chan $nick($chan,%i)
    }
    inc %i
  }
}


Not tested.

Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Here is another version.

Code:
on *:BAN:[color:red]#channel[/color]:{
  var %n, %c = 0, %cc = $nick($chan,0,a,o)
  while (%c < %cc) {
  inc %c
  %n = $nick($chan,%c)
  if ($banmask iswm $address(%n,5)) kick $chan %n [color:red]Reason[/color]
  }
}


(Untested)

-genius_at_work


Link Copied to Clipboard