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.

on join scan away

Old posts that have not been replied to for several years.
Locked
H
HaLiL
Voice
Posts: 3
Joined: Thu Jan 20, 2005 2:57 am

on join scan away

Post by HaLiL »

i need this tcl on join #chan , /whois nick , nick is away privmsg to nick : Hi, this is away spam control please dont reply. if nick away and away msg www or .com .net etc.. ban from #chan.. can anyone give me this tcl script?
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Maybe you should explain abit better what you want.
H
HaLiL
Voice
Posts: 3
Joined: Thu Jan 20, 2005 2:57 am

Post by HaLiL »

if nick come to the channel eggdrop must do /whois nick, if the nick is away and away message is www or http:// etc.. eggdrop must so ban from the channel or ban from server gline/zline/kline
-
on 1:join:#sohbet:whois $nick
raw 301:*:{
if (www sin $3-) || (http:// isin $3-) { zline $2 spam }
}
-
this is mIRC Script code i need same TCL code
-
and every 10,-15 minutes vacates scans or who to look and aways find, user offered away is is removed, it is like a Spam control, if itself to away message advertisements such as www HTTP:// to find should more
User avatar
CrazyCat
Revered One
Posts: 1359
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

Code: Select all

bind join - "#chan" aw:test
bind raw - 301 aw:verif

proc aw:test {nick handle chan args} {
   if {[string tolower $nick] == [string tolower $::botnick]} { return 0}
   putserv "WHOIS $nick"
}

proc aw:verif {from mask text} {
   if { ([string first "www" [string tolower $text]] >= 0) || ([string first "http://" [string tolower $text]] >= 0)} {
      # treat here as you want
   }
   return 0
}
H
HaLiL
Voice
Posts: 3
Joined: Thu Jan 20, 2005 2:57 am

Post by HaLiL »

i cant working this code..

Code: Select all

bind join - "#chan" aw:test 
bind raw - 301 aw:verif 

proc aw:test {nick handle chan args} { 
   if {[string tolower $nick] == [string tolower $::botnick]} { return 0} 
   putserv "WHOIS $nick" 
} 

proc aw:verif {nick from mask text} { 
   if { ([string first "www" [string tolower $text]] >= 0)} { 
      putserv "kill [string tolower $nick] ..."
   } 
   return 0 
}
dont kill user?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

if {[string tolower $nick] == [string tolower $::botnick]} = [isbotnick $nick] and I belive it should be bind join - "#chan *" aw:test :P
tcl-commands.doc wrote:The mask in the bind is matched against "#channel nick!user@host"
btw, if I where you I'd use "stripcodes" (check tcl-commands.doc for more information) to remove all codes before "testing" it.. oh, and HaLiL wanted to do a who every 10-15 minutes, not a on-join whois.. anyway..
Once the game is over, the king and the pawn go back in the same box.
Locked