diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-11-12 11:51:50 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-11-12 11:51:50 +0000 |
commit | e62e7d0162b757ebdf9cbd8df2f4df1088300097 (patch) | |
tree | 12321a123355d5a0259cd7993121ac226f691424 /plugins | |
parent | 454c7872014a1457462559b0152b5102fbcebdd1 (diff) | |
download | prosody-e62e7d0162b757ebdf9cbd8df2f4df1088300097.tar.gz prosody-e62e7d0162b757ebdf9cbd8df2f4df1088300097.zip |
mod_console: Don't allow bang bang as the first command in a session, or when the last command is unknown (fixes #218)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_console.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |