aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-01-28 15:17:55 +0000
committerMatthew Wild <mwild1@gmail.com>2010-01-28 15:17:55 +0000
commit27ff687531a5e9c1cbc991b2fa53829089e2a254 (patch)
tree1b55f45f8b4cf6dd81f8458ce32206c4860990ac
parentdc665996150ab5a77e3aa4ee552b9e61e2964975 (diff)
downloadprosody-27ff687531a5e9c1cbc991b2fa53829089e2a254.tar.gz
prosody-27ff687531a5e9c1cbc991b2fa53829089e2a254.zip
mod_console: Update !! shortcut for new connection API
-rw-r--r--plugins/mod_console.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_console.lua b/plugins/mod_console.lua
index 5e6b6846..6d387b0e 100644
--- a/plugins/mod_console.lua
+++ b/plugins/mod_console.lua
@@ -148,7 +148,7 @@ commands.quit, commands.exit = commands.bye, commands.bye;
commands["!"] = function (session, data)
if data:match("^!!") then
session.print("!> "..session.env._);
- return console_listener.listener(session.conn, session.env._);
+ return console_listener.onincoming(session.conn, session.env._);
end
local old, new = data:match("^!(.-[^\\])!(.-)!$");
if old and new then
@@ -158,7 +158,7 @@ commands["!"] = function (session, data)
return;
end
session.print("!> "..res);
- return console_listener.listener(session.conn, res);
+ return console_listener.onincoming(session.conn, res);
end
session.print("Sorry, not sure what you want");
end