Diff

plugins/mod_admin_shell.lua @ 12887:68df46926c26 0.12

mod_admin_socket: Return error on unhandled input to prevent apparent freeze When mod_admin_socket is loaded without mod_admin_shell, attempt to use `prosodyctl shell` will appear to freeze after any input, since no response is returned.
author Kim Alvefur <zash@zash.se>
date Thu, 16 Feb 2023 17:20:09 +0100
parent 12788:3835c397b129
child 12888:b8504b71735d
child 13077:de42a93a7c8d
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua	Thu Feb 16 15:59:26 2023 +0000
+++ b/plugins/mod_admin_shell.lua	Thu Feb 16 17:20:09 2023 +0100
@@ -198,6 +198,7 @@
 	if not ok then
 		event.origin.send(st.stanza("repl-result", { type = "error" }):text(err));
 	end
+	return true;
 end);
 
 -- Console commands --