mIRC Homepage
Posted By: Mike_Healan How to autoban someone in every channel? - 28/03/03 01:08 PM
outwar.com is running some blasted contest and people have been jumping in spamming it endlessly on my network. I am opped in several channels and I'd like a way to ban that person's hostmask in every channel in which I'm opped all at once. So if I catch him in one channel, the script bans his mask in every other channel so he can only spam one of them.

Here is what I'm using now. It only works in one channel at the time though.
on *:TEXT:*www.outwar.com/page.php?x=*:#:{
if $nick isop # goto end
if $me isop # goto opped
splay ooh.wav
cs ban # $nick Frickin spammer
echo $active $nick has been banned in $chan for outwar spamming
goto end
: opped
kb $nick Frickin spammer
splay ooh.wav
echo $active $nick has been banned in $chan for outwar spamming
goto end
:end
}
Posted By: Cheech Re: How to autoban someone in every channel? - 28/03/03 01:43 PM
yuo need a small alias and a loop
Code:
  
alias blah {
  var %i = $chan(0)
  while (%i > 0) {
    if ($me isop $chan(%i)) {
      mode $chan(%i) $1-
    }
    dec %i
  }
}


then just type /blah +b nickname you can get creative and set popups to bantypes etc..
ok.......

I put that in remotes or aliases? or .. ? confused
Posted By: pod2oo5 Re: How to autoban someone in every channel? - 28/03/03 02:15 PM
remotes
Thanks. I have a popup script now that will do it. These spammers are driving me nuts.
© mIRC Discussion Forums