Commit e8b99730 authored by Rob Swindell's avatar Rob Swindell 💬

Support individual access requirements for IRC, Finger, and inter-bbs msgs.

New modopts.ini [chat_sec] options:
- imsg_requirements (default: blank)
- irc_requirements (default: blank)
- finger_requirements (default: blank)

For DesotoFireflite (VALHALLA)
parent f971a19b
......@@ -53,11 +53,11 @@ while(1) {
write(bbs.text(ChatPrompt));
var keys = "ACDJPQST?\r";
if(options.imsg)
if(options.imsg && user.compare_ars(options.imsg_requirements))
keys += "I";
if(options.irc)
if(options.irc && user.compare_ars(options.irc_requirements))
keys += "R";
if(options.finger)
if(options.finger && user.compare_ars(options.finger_requirements))
keys += "F";
switch(console.getkeys(keys, K_UPPER)) {
case "S":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment