Software /
code /
prosody
Diff
plugins/mod_console.lua @ 1503:5970e06d9335
mod_console: Add quit and exit as aliases for 'bye' command
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 09 Jul 2009 04:37:08 +0100 |
parent | 1502:0f895c06e03f |
child | 1506:2c8aa16b4f64 |
line wrap: on
line diff
--- a/plugins/mod_console.lua Thu Jul 09 04:34:55 2009 +0100 +++ b/plugins/mod_console.lua Thu Jul 09 04:37:08 2009 +0100 @@ -134,6 +134,7 @@ session.print("See you! :)"); session.disconnect(); end +commands.quit, commands.exit = commands.bye, commands.bye; commands["!"] = function (session, data) if data:match("^!!") then