This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

mIRC+TCL antispam (SOLVED)

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
User avatar
masheen
Voice
Posts: 28
Joined: Sat Apr 28, 2007 1:14 pm

mIRC+TCL antispam (SOLVED)

Post by masheen »

can anyone give me a simple script dat makes the bot check for priv message triggers like *www.* *join #* and when someone does, it private
messages me with the offenders nick and trigger match. just one channel is ok.

For example bot is in #chan , and ausernick priv. messages the bot with a phrase: please visit www.website.com, the bot then messages me with this format: ausernick *www.*

in turn wen i receive the relay message from the bot, my irc script will kick the nick that privmsg's the bot. il take care of the irc script. i just nid the TCL for my bot to detect the privmsg triggers i set and messages me with the format:
<offendernick> <triggermatch>

anyone can help me pls? thanks a lot.
Last edited by masheen on Wed Jul 04, 2007 5:41 am, edited 1 time in total.
let he who is without stone cast the first sin
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

It would be easier to either code the detection into the msl script, or let the bot do the full job and kick the user. Whats the point of the bot msg'ing you to tell you to kick that user...
r0t3n @ #r0t3n @ Quakenet
User avatar
masheen
Voice
Posts: 28
Joined: Sat Apr 28, 2007 1:14 pm

Post by masheen »

yep i have scripts for that already...and besides i nid it cos the bot aint opped in the chan. i just nid the script dat does d above :) from that script i can also make a lot of tclscripts that i have in mind which requires privmsg'ng thru tcl <> mirc.

can anybody help? thanks.
let he who is without stone cast the first sin
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Code: Select all

set useless(mynick) "My-Nick-Here"
set useless(patterns) [list *www* *bla* *#* *something*]

bind MSGM -|- * check:spam

proc check:spam {nick host hand msg} {
  global useless;

  foreach pattern $useless(patterns) {
    if {[string match -nocase $pattern $msg]} {
      putserv "PRIVMSG $useless(mynick) :$nick $pattern"
      break;
    }
  }
}
User avatar
masheen
Voice
Posts: 28
Joined: Sat Apr 28, 2007 1:14 pm

Post by masheen »

thanks metroid for a fast reply :)
let he who is without stone cast the first sin
Post Reply