Subj : Finger mod
To   : All
From : Finnigann
Date : Thu Jan 31 2008 07:40 pm

Below is the Finger client from SBBS. I want to know how to add code to
save the dest.slice from each request to be recalled with a (perhaps)
TAB keystroke or someother keystroke pair.

If possible, multiple destinations could be stored in a list with
highlight bar.

If this mod happens, & if it's added to the main distribution, have a
sample include vert.synchro.net and the home system as examples.

Might there be a way to incorporate systems found in DoVeNet? This last
part was inspired by the rash of knuckleheads (lately) found posting on
DoVeNet and a desire to learn more about to whom I (and others) reply
to. This part might be added to the Operators menu availible to sysops
while posting.


// A simple finger client

function write(str)
{
       output_buf += str;
}

if(argc>0 && argv[0].indexOf('@')!=-1)
       dest = argv[0];
else if((dest = prompt("User (user@hostname)"))==null)
       exit();

if((hp = dest.indexOf('@'))==-1) {
       dest += "@" + system.host_name;
       hp = dest.indexOf('@')
}

host = dest.slice(hp+1);
sock = new Socket();
//sock.debug = true;
sock.bind(0,server.interface_ip_address);
if(!sock.connect(host,"finger"))
       alert("Connection to " + host + " failed with error " +
sock.last_error);
else {
       sock.send(dest.slice(0,hp)+"\r\n");
       while(bbs.online && sock.is_connected)
               print(sock.readline());
}
sock.close();



       When you make the finding yourself - even if
       you're the last person on Earth to see the
       light - you'll never forget it. -- Carl Sagan


... A yer ago I kudnt spel jeanyus now I are won.
--- MultiMail/Win32 v0.47
� Synchronet � Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.net (web use port 666)