Code: Select all
proc erase_notes { nick uhost hand chan text } {
set lowercasenick [string tolower $nick]
set a [dosearchnote $nick]
if ($a>0) {
putserv "NOTICE $nick :All your notes have been deleted"
eval "exec cmd.exe >&@stdout <@stdin /c del .\publicnotes\public$lowercasenick.txt"
return 1
} else {
putserv "NOTICE $nick :You didnt have any notes :P"
return 0
}
}
Code: Select all
eval "exec cmd.exe >&@stdout <@stdin /c del .\publicnotes\public$lowercasenick.txt"
[22:21] Tcl error [erase_notes]: couldn't create error file for command: no such file or directory
[22:17] Tcl error [erase_notes]: child process exited abnormally
Original Script: http://www.egghelp.org/cgi-bin/tcl_arch ... oad&id=273