i have read nearly every forum post relating to this problem
ive search and everything, heres my problem
I've logged a chan output to logfile, i've brought it back in
gave it a string and everything, worked out how to strip the colors from it
heres the code i have..
Code: Select all
if {[file exists $searchfile]} {
set filech [open $searchfile r]
while {![eof $filech]} {
gets $filech line
set edline $line
set edline2 $line
set endofname "x"
set lwrtext [string tolower $text]
set lwrcase [string tolower $edline]
set strip [stripcodes bcruag $edline2]
if {[string match *$lwrtext* $lwrcase] && [string match *#* $edline] } {
puthelp "PRIVMSG #melwakechan : Result - [string trimleft $strip "#"] -"
}
}
}
close $filech
this is just my final way of coding it, I have tried many, all of which failing
finding the line is not the problem here, what I want to do is format the line so I can do something useful with it. this is just the start of this application, but it doesn't make any sense at all to me..
Even a Your making no sense here would be appreciated
this is what I am getting in the channel, I would have thought from my reading that everything to the left of the # would be gone,or even just no #.
Thanks.Result - [03:05] <[am]-32263> #4 1x [705M] Oceans.13.R5.Line.XViD-ViSUAL.avi -
lacedrabbit