| 
 | 
 
| 
 
learn3r
 
 | 
 
| 
 learn3r 
 | 
on ^*:open:?: { echo $nick commonchans: ------------- var %spam = #!.com!join #
  ;then matchtok if the $1- contains a spam word if does gets the *!*@host and bans the users host on every chan that i'm opped in... if match or someone on the channels that im opped in has the same host kicks and ban em }
 
  ---------
  help pls thanks.. alias comchans { var %cs.all = $comchan($1,0) var %cs.chans if ( %cs.all > 0 ) { set %cs.chans $comchan($1,%cs.all) } else { set %cs.chans CommonChan:None } dec %cs.all 1 :cs while ( %cs.all > 0 ) { set %cs.chans %cs.chans $+ , $+ $comchan($1,%cs.all) dec %cs.all } return %cs.chans } 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Jun 2006 
Posts: 506  
Fjord artisan 
 | 
 
 
Fjord artisan 
Joined:  Jun 2006 
Posts: 506  | 
on ^*:open:?: { echo $nick commonchans: ------------- var %spam = #!.com!join #
  ;then matchtok if the $1- contains a spam word if does gets the *!*@host and bans the users host on every chan that i'm opped in... if match or someone on the channels that im opped in has the same host kicks and ban em } Try  Searching, I'm sure you'll find many   ---------
  help pls thanks.. alias comchans { var %cs.all = $comchan($1,0) var %cs.chans if ( %cs.all > 0 ) { set %cs.chans $comchan($1,%cs.all) } else { set %cs.chans CommonChan:None } dec %cs.all 1 :cs while ( %cs.all > 0 ) { set %cs.chans %cs.chans $+ , $+ $comchan($1,%cs.all) dec %cs.all } return %cs.chans }  alias comchans {
  var %i = 1,%cc
  while $comchan($$1,%i) { var %cc = $addtok(%cc,$v1,44) | inc %i }
  return %cc
} 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
| 
 
learn3r
 
 | 
 
| 
 learn3r 
 | 
Try Searching, I'm sure you'll find many 
  None 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Jun 2006 
Posts: 506  
Fjord artisan 
 | 
 
 
Fjord artisan 
Joined:  Jun 2006 
Posts: 506  | 
I'm sure there is, try using better/different keywords (+spam +filter etc), and expand the date range. 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
| 
 
learn3r
 
 | 
 
| 
 learn3r 
 | 
still got nothing like i requested,,, 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Jul 2006 
Posts: 242  
Fjord artisan 
 | 
 
 
Fjord artisan 
Joined:  Jul 2006 
Posts: 242  | 
  on ^*:open:?: {
  var %a = 0
  while (%a < $numtok(%spamwords,32)) {
    inc %a
    var %spamcheck = $gettok(%spamwords,%a,32)
    if ($istok($strip($1-),%spamcheck,32) == $true) {
      var %hai = 0
      while (%hai <= $comchan($nick,0)).op { 
        inc %hai
        ban -ku $comchan($nick,%hai) $nick 2 Private message spammer
      }
    }
  }
}
menu channel {
  Add SpamWords
  .Add:/set %spamwords $addtok(%spamwords,$$?,32) | echo -a 4SpamWord Added.
  .Remove:/set %spamwords $remtok(%spamwords,$$?,32) | echo -a 4SpamWord Removed.
}    Remember its an on OPEN event so if you have a query window with that user already open it wont work  
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
| 
 
learn3r
 
 | 
 
| 
 learn3r 
 | 
already have that kind of script with dialog...
  what im requesting is  if not on my channels it will ban the  *!*@host of the spammer so that spammer won't be able to join the channels that im opped in..
  spammers spam by joining then parting after 30 or more secs.. then message the users on the channel we're it joined 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Dec 2002 
Posts: 1,245  
Hoopy frood 
 | 
 
 
Hoopy frood 
Joined:  Dec 2002 
Posts: 1,245  | 
write it yourself
  on open with $wildsite if spam detected in query then ban that address in all the channels you have ops in
  and dont forget /close -m $nick 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
| 
 
learn3r
 
 | 
 
| 
 learn3r 
 | 
ok il have to ask how to ban the spammer's host in all channels im opped Thanks and thanks halleyJ 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Dec 2002 
Posts: 1,245  
Hoopy frood 
 | 
 
 
Hoopy frood 
Joined:  Dec 2002 
Posts: 1,245  | 
on *:open:?:{
  set %queryID $wildsite
}
on *:text:*:?:{
  if (* badword * iswm $1-) { goto ban }
  close -m $nick
  :ban 
  var %count = $comchan($me,0)
  var %i = 1
  while (%i <= %count) {
    if ($me isops $comchan($me,%i)) {
      ban -u15 $comchan($me,%i) %queryID
    }
    inc %i
  }
}
play with that 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Jul 2006 
Posts: 242  
Fjord artisan 
 | 
 
 
Fjord artisan 
Joined:  Jul 2006 
Posts: 242  | 
 on ^*:open:?: {
  var %a = 0
  while (%a < $numtok(%spamwords,32)) {
    inc %a
    var %spamcheck = $gettok(%spamwords,%a,32)
    if ($istok($strip($1-),%spamcheck,32) == $true) {
      var %hai = 0
      while (%hai <= $chan(0)) { 
        inc %hai
        if ($me isop $chan(%hai)) {
          ban $chan(%hai) $wildsite
        }
      }
    }
  }
}
menu channel {
  Add SpamWords
  .Add:/set %spamwords $addtok(%spamwords,$$?,32) | echo -a 4SpamWord Added.
  .Remove:/set %spamwords $remtok(%spamwords,$$?,32) | echo -a 4SpamWord Removed.
}   modified as per your request  
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
| 
 
learn3r
 
 | 
 
| 
 learn3r 
 | 
 
on ^*:open:?: {
  var %a = 0
  while (%a < $numtok(%spamwords,32)) {
    inc %a
    var %spamcheck = $gettok(%spamwords,%a,32)
    if ($istok($strip($1-),%spamcheck,32) == $true) {
      var %hai = 0
      while (%hai <= $chan(0)) {
        inc %hai
        if ($me isop $chan(%hai)) ban $chan(%hai) $wildsite
        else { if ($me !isop $chan(%hai)) cs op $chan $me | ban $chan(%hai) $wildsite }
      }
    }
  }
} 
   Thanks HaleyJ could i use this when im not op?  
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Jul 2006 
Posts: 242  
Fjord artisan 
 | 
 
 
Fjord artisan 
Joined:  Jul 2006 
Posts: 242  | 
 |  
 
 | 
 
 
 |  
 
   |  
 
 |