Originally Posted By: ReTr0
1). I have well over 70 bad words nicks for multiple channels, some require wild cards, can I combine notice, text, action and cctp all in one script? I would prefer something easier to add and subtract words in a jiffy. Can I have kick ban with 1 to 3 minutes. I've no problem adding words as follows:
alias bdwd { set %badwords put,words,here,seperated,by,commas

If you add the words to a file (badnicks.txt)
*put*
*wor?s*
*here*
*like?so*
Code:
on *:notice:*:*:badnick.check
on *:text:*:*:badnick.check
on *:action:*:*:badnick.check
ctcp *:*:badnick.check

on *:start:{
  hmake badnicks 10
  if $file(badnicks.txt) { hload -n badnicks badnicks.txt }
}
alias -l badnick.check {
  if $hget(badnicks,$nick,1,W).data {
    echo -ag do stuff with $nick -- $iif(#,on #,privmsg)
  }
}
alias +badnick { hadd -m badnicks $ticks $replace($+(*,$$?1,*),**,*) | hsave -n badnicks badnicks.txt }

;/+badnick [word]
; Adds a word


Originally Posted By: ReTr0
2). Since I am in over 10 channels, and when I get disconnect from server, I can’t re-connect, well I can but I excess flood, for hours, till I get back and exit from most of the channels. I use timer to join 90 seconds a part, how can I tell my script to close all the open windows and start fresh upon disconnection?

Try this
Code:
on *:disconnect:set -e %disconnected $addtok(%disconnected,$cid,32)
on *:connect:{
  if $istok(%disconnected,$cid,32) {
    autojoin -s
    var %i = 1
    while $chan(%i) { .timeraj $+ %i 1 $calc(%i *90) join $v1 | inc %i }
  }
}