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: | fluid |
---|---|
Location: | wickliffe, ohio |
Users: | 5 |
Nodes: | 10 (0 / 10) |
Uptime: | 203:05:57 |
Calls: | 50 |
Files: | 15,838 |
Messages: | 50,766 |