Subj : bullseye.js PATCH
To   : All
From : Delbert
Date : Wed Aug 15 2007 02:37 pm

Hi ALL,
I tried to post a regular diff of this, but it was too messed up at 80 char, so
here's the hand method:
IN bulleye.js REPLACE THIS:
if(str.search(/\.htm/)!=-1)
   bbs.exec("?typehtml -color "+str);
else
   bbs.exec("?typeasc "+str+" BullsEye Bulletin #"+b);

WITH THIS:
if(html) {      // if the user can do html
   if(str.search(/\.htm/)!=-1)     // and the file is html then
       console.printfile(fname); // just give it to them
   else    // otherwise convert from CTRL-A to HTML
       bbs.exec("?typeasc "+str+" BullsEye Bulletin #"+b);
}
else {  // if the user can't do html
   if(str.search(/\.htm/)!=-1) // but that's what the file is
       bbs.exec("?typehtml -color "+str); // convert it
   else // otherwise just give it to them
       console.printfile(fname);
}

IN typehtml.js ADD THE FOLOWING:
load("sbbsdefs.js"); // USER_HTML

I've found that using elinks --dump (on linux) outputs a very nice looking
formatted ASCII from an HTML file, BTW.
-j-

---
� Synchronet � Delbert's Place BBS | telnet://delberts.audizar.com