___________________________________________________________
bind pubm - "*teste*" pubm:teste
proc pubm:teste { nick uhost handle channel arg } {
global bla
set file logs/ipc.log
set textf [open $file r]
set data [read $textf]
foreach line [split $data \n] {
if {[string match *word* $line]} {
set text $line
putserv "PRIVMSG $chan :I found word in line $text"
}
}
catch {close $file}
}
___________________________________________________________________
whats wrong in this code?? i want that eggdrop searchs for a word in a logfile and say the lines of the file he found the word
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born