egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

mIRC+TCL antispam (SOLVED)

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
masheen
Voice


Joined: 28 Apr 2007
Posts: 28

PostPosted: Tue Jul 03, 2007 7:57 am    Post subject: mIRC+TCL antispam (SOLVED) Reply with quote

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.
_________________
let he who is without stone cast the first sin


Last edited by masheen on Wed Jul 04, 2007 5:41 am; edited 1 time in total
Back to top
View user's profile Send private message
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Tue Jul 03, 2007 10:10 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message MSN Messenger
masheen
Voice


Joined: 28 Apr 2007
Posts: 28

PostPosted: Tue Jul 03, 2007 10:55 am    Post subject: Reply with quote

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 Smile 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
Back to top
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Tue Jul 03, 2007 1:24 pm    Post subject: Reply with quote

Code:
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;
    }
  }
}
Back to top
View user's profile Send private message
masheen
Voice


Joined: 28 Apr 2007
Posts: 28

PostPosted: Wed Jul 04, 2007 5:41 am    Post subject: Reply with quote

thanks metroid for a fast reply Smile
_________________
let he who is without stone cast the first sin
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber