# HG changeset patch # User Matthew Wild # Date 1776359765 -3600 # Node ID d666e7cd86092d8b24d10e59c92eb48416916cb4 # Parent 791426dda30ddcaaa89c2be0abdfc82d36cc1979 mod_admin_shell: Show help listing when specifying only a section name This is significantly better than showing 'table:0x.....'. diff -r 791426dda30d -r d666e7cd8609 plugins/mod_admin_shell.lua --- a/plugins/mod_admin_shell.lua Thu Apr 16 16:12:34 2026 +0100 +++ b/plugins/mod_admin_shell.lua Thu Apr 16 18:16:05 2026 +0100 @@ -415,6 +415,10 @@ end end + if (source or line):match("^%w+$") and def_env[source or line] then + source, line = nil, "help:"..(source or line).."();"; + end + local chunkname = "=console"; -- luacheck: ignore 311/err local chunk, err = envload(source or ("return "..line), chunkname, env);