init
qwkout
repin
+ nncp_handler
You can also use the -c option to specify an alternative configuration
file. (The default is the file "config.lua" in the current directory.)]]
end
+function cmd.nncp_handler()
+ load_config()
+
+ local user_name = os.getenv("NNCP_SENDER")
+
+ if not user_name then
+ print [[The nncp_handler command is intended to be called by nncp on
+receipt of an exec packet. For instance, the offline BBS could
+be made accessible by user (node) NODENAME by adding the following
+to their neigh entry in the /etc/nncp.hjson file
+
+exec: {
+ obbs: ["/usr/bin/obbs -c /var/share/obbs/config.lua nncp"]
+}]]
+
+end
+
-- Main
local function main()