Changeset

2512:d04b0eeeb954

mod_console: Update !! shortcut for new connection API
author Matthew Wild <mwild1@gmail.com>
date Thu, 28 Jan 2010 15:17:55 +0000
parents 2511:a81c710b1708
children 2513:a8aa7616b154
files plugins/mod_console.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_console.lua	Thu Jan 28 15:05:30 2010 +0000
+++ b/plugins/mod_console.lua	Thu Jan 28 15:17:55 2010 +0000
@@ -148,7 +148,7 @@
 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 @@
 			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