U have been looking arround the IRC chat feature at Synchronet, and I wanted to change the default IRC network and channel, giving the users the possibility of writting down their on server. For some reason, the users were not able to join another IRC network regardless of writting it when the BBS asked.
I spotted this code at chat_sec.js:
case 'R':
{
if(user.security.level >= 90 || user.security.exemptions&UFLAG_C) {
write("\r\n\001n\001y\001hIRC Server: ");
server=console.getstr(irc_server, 40, K_EDIT|K_LINE|K_AUTODEL);
if(console.aborted)
break;
}
write("\r\n\001n\001y\001hIRC Channel: ");
var channel=console.getstr(irc_channel, 40, K_EDIT|K_LINE|K_AUTODEL);
if(!console.aborted)
bbs.exec("?irc -a " + irc_server + " " + channel);
}
break;
I though that the vars were not right, so I changed that code to this one:
case 'R':
{
if(user.security.level >= 50 || user.security.exemptions&UFLAG_C) {
write("\r\n\001n\001y\001hIRC Server: ");
var server=console.getstr(irc_server, 40, K_EDIT|K_LINE|K_AUTODEL);
if(console.aborted)
break;
}
write("\r\n\001n\001y\001hIRC Channel: ");
var channel=console.getstr(irc_channel, 40, K_EDIT|K_LINE|K_AUTODEL);
if(!console.aborted)
bbs.exec("?irc -a " + server + " " + channel);
}
break;
Everything is working like a charm now. I would like to know if there is an official way to contribute with the Synchronet code in order to help the development in some way.
Also, many thanks to all the developers for their amazing work!
You're very welcome! And thanks again for the bug report and root-cause analysis.
Sysop: | Tandy |
---|---|
Location: | New York, USA |
Users: | 15 |
Nodes: | 13 (0 / 13) |
Uptime: | 02:44:37 |
Calls: | 335 |
Messages: | 113,424 |