• JS error

    From Merlin@VERT/CARSO to All on Wed Dec 20 14:47:00 2006
    Hi all.ããI have a script that is causing the BBs to crash (freebsd version) when it ãruns and I have tried a few things to get it working but can't. Can anyoe ãsee what is wrong with this?ãããtop =format(bbs.text(377),"",user.age,user.gender,user.birthdateã ,user.name,user.phone,user.computer,user.connection);ããbbs.email(bbs.node_val_user,nullã ,topã ,"New user introduction");ããWhat it should do is read prompt 377 from text.dat (which it does) and ãformat it with the users data and place it in a sting called topãThen it creates a new email to the sysop with that text at the top of the ãmessage. Basically, it is a JS version of the new user feedback email ãthat I run from a script.ããIf I take out all of the user. variables so it saysããtop =format(bbs.text(377),"");ããthen it works, in so far as it creates an email and puts string 377 at the ãtop of the text. Any ideas why it doesn't work when I try to populate the ãstring 377 with the users data would be appreciated!ããThanksãMerlinããã--------------------------------------------------------------ã Merlin þ SysOp of CarSo BBs þ telnet://carso.synchro.netã--------------------------------------------------------------ããã---ã þ Synchronet þ CarSo BBs þ Beverley, UK þ telnet://carso.synchro.netã
  • From Mindless Automaton@VERT/ELDRITCH to Merlin on Wed Dec 20 13:36:00 2006
    Merlin wrote:ã> Hi all.ã> ã> I have a script that is causing the BBs to crash (freebsd version) when it ã> runs and I have tried a few things to get it working but can't. Can anyoe ã> see what is wrong with this?ã> ã> ã> top =format(bbs.text(377),"",user.age,user.gender,user.birthdateã> ,user.name,user.phone,user.computer,user.connection);ã> ã> bbs.email(bbs.node_val_user,nullã> ,topã> ,"New user introduction");ã> ããI will guess and say fields with null values cause it to crash? :)ãã-Mindless Automatonã---ã þ Synchronet þ Eldritch Clockwork BBSã
  • From Deuce@VERT/SYNCNIX to Merlin on Wed Dec 20 17:50:00 2006
    Re: JS errorã By: Merlin to All on Wed Dec 20 2006 02:47 pmãã > top =format(bbs.text(377),"",user.age,user.gender,user.birthdateã > ,user.name,user.phone,user.computer,user.connection);ã > top of the text. Any ideas why it doesn't work when I try to populate theã > string 377 with the users data would be appreciated!ããYeah, you need to pass a string for strings and a number for numbers in theãlast release version.ããie: String, num, num, string, string, string, string, stringããyou're passing:ãstring, num, string, string, string, string, string, stringããTry changing user.gender to ascii(user.gender)ããThis has been fixed for 3.14ããã---ãThe buck doesn't even slow down here.ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Mindless Automaton@VERT/ELDRITCH to Deuce on Wed Dec 20 21:54:00 2006
    Deuce wrote:ã> Re: JS errorã> By: Merlin to All on Wed Dec 20 2006 02:47 pmã> ã> > top =format(bbs.text(377),"",user.age,user.gender,user.birthdateã> > ,user.name,user.phone,user.computer,user.connection);ã> > top of the text. Any ideas why it doesn't work when I try to populate theã> > string 377 with the users data would be appreciated!ã> ã> Yeah, you need to pass a string for strings and a number for numbers in theã> last release version.ã> ã> ie: String, num, num, string, string, string, string, stringã> ã> you're passing:ã> string, num, string, string, string, string, string, stringã> ã> Try changing user.gender to ascii(user.gender)ã> ã> This has been fixed for 3.14ããrat.. my guess was no where near close.. oh well..ãã- Mindless Automatonã---ã þ Synchronet þ Eldritch Clockwork BBSã
  • From Merlin@VERT/CARSO to Deuce on Thu Dec 21 17:22:00 2006
    Re: JS errorã By: Deuce to Merlin on Wed Dec 20 2006 17:50:00ãã > you're passing:ã > string, num, string, string, string, string, string, stringã > ã > Try changing user.gender to ascii(user.gender)ã > ã > This has been fixed for 3.14ããHi. Thanks. I'll give that a try in a minute, although I am using 3.14 on ãFreeBSD!ããRãã--------------------------------------------------------------ã Merlin þ SysOp of CarSo BBs þ telnet://carso.synchro.netã--------------------------------------------------------------ããã---ã þ Synchronet þ CarSo BBs þ Beverley, UK þ telnet://carso.synchro.netã
  • From Deuce@VERT/SYNCNIX to Merlin on Thu Dec 21 12:43:00 2006
    Re: JS errorã By: Merlin to Deuce on Thu Dec 21 2006 05:22 pmãã > > you're passing:ã > > string, num, string, string, string, string, string, stringã >ã > > Try changing user.gender to ascii(user.gender)ã >ã > > This has been fixed for 3.14ã >ã > Hi. Thanks. I'll give that a try in a minute, although I am using 3.14 onã > FreeBSD!ããIn which case we have a different issue... try adding the params one at a timeãuntil it causes the crash... I'll try reproducing on my system.ããã---ãThe buck doesn't even slow down here.ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Deuce@VERT/SYNCNIX to Merlin on Thu Dec 21 15:34:00 2006
    Re: JS errorã By: Deuce to Merlin on Thu Dec 21 2006 12:43 pmãã > > Hi. Thanks. I'll give that a try in a minute, although I am using 3.14ã > > on FreeBSD!ã >ã > In which case we have a different issue... try adding the params one at aã > time until it causes the crash... I'll try reproducing on my system.ããOk, problem reproduced and solved two ways in CVS.ããMy suggestion should still make it work however. :-)ãã---ãThe buck doesn't even slow down here.ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Merlin@VERT/CARSO to Deuce on Thu Dec 21 22:07:00 2006
    Re: JS errorã By: Deuce to Merlin on Thu Dec 21 2006 12:43:00ãã > Re: JS errorã > By: Merlin to Deuce on Thu Dec 21 2006 05:22 pmã > ã > > > This has been fixed for 3.14ã > >ã > In which case we have a different issue... try adding the params one at a tiã > until it causes the crash... I'll try reproducing on my system.ããIve changed my script to use ascii(user.gender) and it now works. I am ãusing the latest CVS of 3.14 for FreeBSD, so maybe it isn't fixed!ããMerlinãã--------------------------------------------------------------ã Merlin þ SysOp of CarSo BBs þ telnet://carso.synchro.netã--------------------------------------------------------------ããã---ã þ Synchronet þ CarSo BBs þ Beverley, UK þ telnet://carso.synchro.netã