Hello I Need A Small Script..
Client Connecting On My Server And The Format Is:
irc.server.com- *** Notice -- Client connecting on port 6667: Abc (~ABC@69.42.218.545) [clients]
I Need The Bot Save This Line To A File: irc.server.com- *** Notice -- Client connecting on port 6667: Abc (~ABC@69.42.218.545) [clients]
# set full route and filename ##
set the_log_file "/usr/home/spike/connect.log"
# set mask(s) to match for lines to save to the log ##
# note: put each mask on it's own line. ##
set the_notc_masks {
*Client connecting*
}
############# end settings #############
set the_notc_masks [split [string trim $the_notc_masks] \n]
bind raw - NOTICE notc:log:proc
proc notc:log:proc {from keyword text} {
foreach mask $::the_notc_masks {
if {[string match -nocase $mask $text]} {
set open [open $::the_log_file a]
puts $open $text
close $open
break
}
}
return 0
}