From 27ff687531a5e9c1cbc991b2fa53829089e2a254 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 28 Jan 2010 15:17:55 +0000 Subject: mod_console: Update !! shortcut for new connection API --- plugins/mod_console.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') 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 -- cgit v1.2.3