set olist "oplist.txt"
bind mode - "#Channel +o" olist:add
proc olist:add {nick host hand chan mc vc} {
set f [open $::olist a]
set i 0
while {[gets $f n]>-1} {
if {[string match -nocase $vc $n]} {
incr i
}
}
if {$i} {
puts $f $vc
}
close $f
}
Tcl error [olist:add]: channel "file9" wasn't opened for reading
and i need to write with the Time/Date when oped .. can ?
It's because the nick must have gotted opped twice (two times).
The script will trigger on any +o mode.
So if a user tries to get op, 2 times repeatedly with ChanServ or 10 times in a very quick sucession (and in between that time no one else has gotten opped or the target +o is same again as before), all those lines will be written in the txt file, regardless of whatever the nick is.
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee) PS: Guys, I don't accept script helps or requests personally anymore.
==================================