pHael

pHael

Joined
May 12, 2005
Occupation
Administrator
Location
Rondonópolis - MT / Brasil
Website
Interests
All

Activity Stream

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

The script worked fine. But the complement code is necessary to not fail.

More
 Respond  
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
}
More
 Respond  
pHael commented on a Page, Spam Relay (two bots required)  -  Apr 10, 2010

fixed 1:

bind msgm - * msg:spam:check
proc msg:spam:check {nick uhost hand text} { 
  global spamwords oppedbot
  foreach nospamchan [channels] {
    if {[channel get $nospamchan spamcheck]} {
      if {([botonchan $nospamchan]) && ([onchan $oppedbot $nospamchan]) && (![isbotnick $nick])} { 
        if {([onchan $nick $nospamchan]) && (![validuser $hand]) && (![isop $nick $nospamchan]) && (![isvoice $nick $nospamchan])} {
          foreach pattern $spamwords {
            if {[string match -nocase $pattern $text]} {
              putquick "PRIVMSG $oppedbot :spam $nospamchan $nick" 
            }
          }
        }
      }
    } 
  } 
  return 0
}

fixed 2:

bind CTCP - ACTION spam:check
proc spam:check {nick uhost hand dest key text} {
  global botnick spamwords oppedbot
  foreach nospamchan [channels] {
    if {[channel get $nospamchan spamcheck]} {
      if {([botonchan $nospamchan]) && ([onchan $oppedbot $nospamchan]) && (![isbotnick $nick])} {
        if {![validuser $hand]} {
          if {([onchan $nick $nospamchan]) && (![isop $nick $nospamchan]) && (![isvoice $nick $nospamchan])} {
            foreach pattern $spamwords {
              if {[string match -nocase $pattern $text]} { 
                putquick "PRIVMSG $oppedbot :spam $nospamchan $nick"
              }
            }
          }
        }
      } 
    } 
  }
  return 0
}
More
 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.