Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
1502:0f895c06e03f | 1503:5970e06d9335 |
---|---|
132 | 132 |
133 function commands.bye(session) | 133 function commands.bye(session) |
134 session.print("See you! :)"); | 134 session.print("See you! :)"); |
135 session.disconnect(); | 135 session.disconnect(); |
136 end | 136 end |
137 commands.quit, commands.exit = commands.bye, commands.bye; | |
137 | 138 |
138 commands["!"] = function (session, data) | 139 commands["!"] = function (session, data) |
139 if data:match("^!!") then | 140 if data:match("^!!") then |
140 session.print("!> "..session.env._); | 141 session.print("!> "..session.env._); |
141 return console_listener.listener(session.conn, session.env._); | 142 return console_listener.listener(session.conn, session.env._); |