Subj : How do you call two functions in an eval?
To   : Nightfox
From : Amessyroom
Date : Fri Aug 23 2024 02:12 am

 Re: How do you call two functions in an eval?
 By: Nightfox to Amessyroom on Thu Aug 22 2024 09:21 am

Am>> When a key is pressed I want to call bbs.view_file("file") and
Am>> bbs.exec_xtrn(INTERNAL_NAME).

Am>> How do you do this ? It seems I can do one but not both

Am>> 'A': { eval: 'bbs.exec_xtrn("code")'  },

Ni> It looks like you're using default.js?  I think inside the single-quotes
Ni> after the eval:, you should be able to put multiple statements in there
Ni> (each ending with a semicolon)..

Ni> 'A': { eval: 'bbs.view_file("file"); bbs.exec_xtrn("code");' },

Ni> I haven't tried that, but I'd think that should work.

Ni> Nightfox

---
� Synchronet � Too Lazy BBS - toolazy.synchro.net:2323