From e62e7d0162b757ebdf9cbd8df2f4df1088300097 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 12 Nov 2010 11:51:50 +0000 Subject: mod_console: Don't allow bang bang as the first command in a session, or when the last command is unknown (fixes #218) --- plugins/mod_console.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_console.lua b/plugins/mod_console.lua index 46956a82..c84cd5ac 100644 --- a/plugins/mod_console.lua +++ b/plugins/mod_console.lua @@ -160,7 +160,7 @@ end commands.quit, commands.exit = commands.bye, commands.bye; commands["!"] = function (session, data) - if data:match("^!!") then + if data:match("^!!") and session.env._ then session.print("!> "..session.env._); return console_listener.onincoming(session.conn, session.env._); end -- cgit v1.2.3