Home
Explore
Apps
Scripts
Code Snippets
Hardware
Images
Home
Explore
Apps
Scripts
Code Snippets
Hardware
Images
Sign up to Hawkee
Sign in
pHael
1
following
0
followers
Follow
Message
pHael
Joined:
May 12, 2005
Occupation:
Administrator
Location:
RondonĂ³polis - MT / Brasil
Website:
http://www.portaldoirc.com/
Interests
All
Comments
All
Threads
Projects
Code Snippets
pHael
commented on a Snippet,
Spam Relay (two bots required)
-
May 02, 2010
The script worked fine. But the complement code is necessary to not fail.
pHael
commented on a Snippet,
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...
Code
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 }
pHael
commented on a Snippet,
Spam Relay (two bots required)
-
Apr 10, 2010
fixed 1:
Code
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:
Code
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 }