From 5f38268fb67321027c54011742e45eaf3a6a8a54 Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Wed, 8 May 2019 16:06:02 +0000 Subject: Simplify/neaten function names. --- telem.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/telem.lua b/telem.lua index 05554d2..4f176ac 100755 --- a/telem.lua +++ b/telem.lua @@ -260,7 +260,7 @@ function do_colour() end end -function do_setmessageorder() +function do_order() if reversemessages then reversemessages = false print("Newest messages displayed at top.") @@ -270,7 +270,7 @@ function do_setmessageorder() end end -function do_sethideold() +function do_hide() if hideold then hideold = false print("Showing old threads.") @@ -707,7 +707,7 @@ load_scan_times() -- Build dispatch table mapping chars to functions dispatch = {} dispatch["h"] = do_help -dispatch["H"] = do_sethideold +dispatch["H"] = do_hide dispatch["g"] = do_go dispatch["l"] = do_list dispatch["m"] = do_messages @@ -717,7 +717,7 @@ dispatch["?"] = do_help2 dispatch["!"] = do_rules dispatch["w"] = do_who dispatch["s"] = do_scan -dispatch["o"] = do_setmessageorder +dispatch["o"] = do_order dispatch["="] = do_unimplemented dispatch["n"] = do_new dispatch["r"] = do_reply -- cgit v1.2.3