View Single Post
Old 31-01-2006, 17:21   #2 (permalink)
lsn
Member
 
lsn's Avatar
 
Join Date: Jun 2004
Location: In the NeXuS
Posts: 160
Rep Power: 38
lsn will become famous soon enough
Default

Incearca ceva de genu dar mai trebuie sa lucrezi la el
Code:
bind join - * clone:check
 
setudef flag clonecheck
 
proc clone:check {nick uhost hand chan} {
 
if {![channel get $chan clonecheck]} {return}
if { [matchattr $hand f|f $chan]} {return}
  global punished
  puthelp "PRIVMSG $nick :-ATENTIE- Sunt un robot al canalului $chan si verific daca esti o persoana virusata si faci reclama pe privat!Nu raspunde la acest mesaj deoarece vei fi considerat virusat si vei primi ban! Multumesc. :-)"
  set punished($nick,$uhost) "$chan"
  timer 10[list unset punished($nick,$uhost)]
 
}
 
bind msgm - * pub:clone:execute
 
proc pub:clone:execute {nick uhost hand arg} {
  global punished botnick
  if {[info exists punished($nick,$uhost)] } {
        set ban "*!*@[lindex [split $uhost @] 1]"
        newchanban $punished($nick,$uhost) $ban $botnick "reason for ban" 15m sticky
    }
}
 
putlog ".... tcl loaded"

Last edited by lsn; 31-01-2006 at 18:20.
lsn is offline   Reply With Quote