From 96b30b6ef5fe3491b5c7d80d2e94ce17ba1f8128 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Wed, 17 Jul 2019 12:06:10 -0400 Subject: Document the who command Document the who command in the command listing. Switch to using the better-formatted output of finger. Signed-off-by: Solderpunk --- telem.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/telem.lua b/telem.lua index bb790c9..f077680 100755 --- a/telem.lua +++ b/telem.lua @@ -329,6 +329,7 @@ function do_help() (c)olor ........ Disable/Enable ANSI color codes (H)ide ......... Disable/Enable hiding of old threads (o)rder ........ Toggle order of message listing + (w)ho .......... List currently logged-in users (q)uit ......... Immediately quit the board ]]) end @@ -689,8 +690,8 @@ function do_rules() cat_file(path.join(_BBS_ROOT, "docs", "rules")) end -function do_who() - os.execute("/usr/bin/w") +function do_finger() + os.execute("/usr/bin/finger -sh") end -- MAIN PROGRAM BODY BELOW @@ -714,7 +715,7 @@ dispatch["q"] = do_quit dispatch["t"] = do_type dispatch["?"] = do_help2 dispatch["!"] = do_rules -dispatch["w"] = do_who +dispatch["w"] = do_finger dispatch["s"] = do_scan dispatch["o"] = do_order dispatch["n"] = do_new -- cgit v1.2.3