I now want to build something in that it there is no userfile he will make it itself withe the botadmin in it.
This is what i have added var with admin name en host.
With that var the idea is dat you can add as many host as possible.
set botadmin "BoBjUh"
set adminmail "bobjuh@linux-nl.org"
set addhosts {
*!*ident@host1.isp.tcl
*!*ident@host1.isp.tcl
}
Now the problem is to add this to the userfile.
I want it to add the host set in the addhosts. With the addhosts setting the idea is that you can add as many host as you want.if {![file exists ${username}.user]} then {
close [open ${username}.user w]
set io [open ${username}.user a]
puts $io "#4v: eggdrop v1.6.12 -- Eggdrop -- written Mon Jan 1 00:00:00 2003"
puts $io "$botadmin - jmnoptx "
puts $io "--PASS +password"
puts $io "--HOSTS *!*@host.isp.tld"
puts $io "--XTRA created 1047407821"
close $io
}