hi
use write -c startup.txt unstead of remove startup.txt
and what about $*
this can be something like this
no need to put chr for "(" and "$" put directly "if ($network =="
if $did == 14 {
write -c startup.txt
write startup.txt on *:START: $chr(123)
write startup.txt server $gettok(%startserver,1,44)
tokenize 44 $gettok(%startserver,2-,44)
write startup.txt server -m $*
write startup.txt $chr(125)
write startup.txt on *:CONNECT: $chr(123)
var %a 1
while $gettok(%startnetwork,%a,44) {
write startup.txt write startup.txt if ($network == $v1 $+ ) $chr(123) nick $gettok(%startnickname,%a,44) $chr(124) .msg NickServ identify $gettok(%startpassword,%a,44) $chr(125)
inc %a
}
write startup.txt $chr(125)
run startup.txt
}