Skip to content
Snippets Groups Projects
Commit 729852b7 authored by rswindell's avatar rswindell
Browse files

Bug-fixes:

1. The 'irc' mod options value was toggling the 'I' command key, not 'R'
   ('R' is for IRC, not 'I')
2. Use load({}, "sbbsimsg.js") so that the chat_sec options aren't blown-away
   by sbbsimsg.js

Enhancement:
- added support for 'imsg' option in [chat_sec] section of modopts.ini, if set
  to false, disables the inter-bbs instant message command key.
parent 8c8bb4c0
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,8 @@ if (options.irc_seclevel === undefined) ...@@ -22,6 +22,8 @@ if (options.irc_seclevel === undefined)
options.irc_seclevel = 90; options.irc_seclevel = 90;
if (options.finger === undefined) if (options.finger === undefined)
options.finger = true; options.finger = true;
if (options.imsg === undefined)
options.imsg = true;
if(user.security.restrictions & UFLAG_C) { if(user.security.restrictions & UFLAG_C) {
write(bbs.text(R_Chat)); write(bbs.text(R_Chat));
...@@ -48,9 +50,11 @@ while(1) { ...@@ -48,9 +50,11 @@ while(1) {
bbs.nodesync(); bbs.nodesync();
write("\r\n\x01_\x01y\x01hChat: \x01n"); write("\r\n\x01_\x01y\x01hChat: \x01n");
var keys = "ACDJPQRST?\r"; var keys = "ACDJPQST?\r";
if(options.irc) if(options.imsg)
keys += "I"; keys += "I";
if(options.irc)
keys += "R";
if(options.finger) if(options.finger)
keys += "F"; keys += "F";
switch(console.getkeys(keys, K_UPPER)) { switch(console.getkeys(keys, K_UPPER)) {
...@@ -77,7 +81,7 @@ while(1) { ...@@ -77,7 +81,7 @@ while(1) {
break; break;
case 'I': case 'I':
writeln(""); writeln("");
load("sbbsimsg.js"); load({}, "sbbsimsg.js");
break; break;
case 'R': case 'R':
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment