Mercurial > prosody-hg
comparison plugins/mod_admin_shell.lua @ 14138:c1469296190d
Merge 13.0->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 17 Apr 2026 14:35:32 +0100 |
| parents | 7008869fcce2 d666e7cd8609 |
| children | 4f4c346e4f39 |
comparison
equal
deleted
inserted
replaced
| 14121:7008869fcce2 | 14138:c1469296190d |
|---|---|
| 417 -- This happens if it was a "simple" command | 417 -- This happens if it was a "simple" command |
| 418 event.origin.send(result); | 418 event.origin.send(result); |
| 419 end | 419 end |
| 420 return; | 420 return; |
| 421 end | 421 end |
| 422 end | |
| 423 | |
| 424 if (source or line):match("^%w+$") and def_env[source or line] then | |
| 425 source, line = nil, "help:"..(source or line).."();"; | |
| 422 end | 426 end |
| 423 | 427 |
| 424 local chunkname = "=console"; | 428 local chunkname = "=console"; |
| 425 -- luacheck: ignore 311/err | 429 -- luacheck: ignore 311/err |
| 426 local chunk, err = envload(source or ("return "..line), chunkname, env); | 430 local chunk, err = envload(source or ("return "..line), chunkname, env); |
