pHael commented on a Page, Spam Relay (two bots required)  -  May 02, 2010

The relay bot don't need to be an operator to continue the process. But the oppedbot yes.
Then, I completed the code with "if {([botonchan $nospamchan]) && ([onchan $oppedbot $nospamchan]) && (![isbotnick $nick])} { }".

I forgot to edit the pubm...

bind pubm - * pub:spam:check
proc pub:spam:check {nick uhost hand chan text} {
  global spamwords oppedbot
  if {[channel get $chan spamcheck]} {
    foreach pattern $spamwords {
      if {[string match -nocase $pattern $text]} {
    if {([botonchan $nospamchan]) && ([onchan $oppedbot $nospamchan]) && (![isbotnick $nick])} {
          if {(![validuser $hand]) && (![isop $nick $chan]) && (![isvoice $nick $chan])} {
            putquick "PRIVMSG $oppedbot :spam $chan $nick"
      }
        }
      }
    }
  }
  return 0
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.