for example theres a "autovoice on" fuction wich I would want to be remembered even when the bot is down..
I've tried to extract the code that I think is responsible for the procedure:
Code: Select all
autovoice { if {[matchattr $handle &m $channel] || [matchattr $handle o]} {
if {![checksec $nick $uhost $handle]} { return 0 }
if {![matchattr $handle +Q]} {
putserv "NOTICE $nick :Je bent niet ingelogd."
putserv "NOTICE $nick :Log in met: /msg $botnick login <paswoord>."
return 0}
if {$who == ""} {
putserv "NOTICE $nick :Gebruik: autovoice <on|off>"
return 0 }
switch $who {
off { set topicinfo(vchan$channel) "0"
putserv "NOTICE $nick :AutoVoice uit."
return 0 }
on { set topicinfo(vchan$channel) "1"
putserv "NOTICE $nick :AutoVoice aan."
return 0 }}}}
the save feature of the bot just saves the things that are being saved when you type .save in dcc chat, i think
Code: Select all
save { if {[matchattr $handle m]} {
if {![checksec $nick $uhost $handle]} { return 0 }
if {![matchattr $handle +Q]} {
putserv "NOTICE $nick :Je bent niet ingelogd."
putserv "NOTICE $nick :Log in met: /msg $botnick login <paswoord>."
return 0}
save
putserv "NOTICE $nick :Opgeslagen."
putserv "PRIVMSG $home :$botnick@$servicename: \002\0035\[\002\00314[lindex [ctime [unixtime]] 0] [lindex [ctime [unixtime]] 2] [lindex [ctime [unixtime]] 1] [lindex [ctime [unixtime]] 4] \0031@\00310 [lindex [ctime [unixtime]] 3]\0035\002\]\002\003 $nick (\00314$nick!$uhost\003) heeft me alle data laten \002\0032OPSLAAN\002\003." }}