# HG changeset patch # User Matthew Wild # Date 1289562710 0 # Node ID 8b436cc88c0ee3a22c3e14f9d5243c0291973696 # Parent f617718d22214c2c2b9289d9507dac8a748c79ae mod_console: Don't allow bang bang as the first command in a session, or when the last command is unknown (fixes #218) diff -r f617718d2221 -r 8b436cc88c0e plugins/mod_console.lua --- a/plugins/mod_console.lua Thu Nov 11 12:23:51 2010 +0000 +++ b/plugins/mod_console.lua Fri Nov 12 11:51:50 2010 +0000 @@ -160,7 +160,7 @@ 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