# HG changeset patch # User Matthew Wild # Date 1264691875 0 # Node ID d04b0eeeb9544150432ce6ca6898c0c191fc19cd # Parent a81c710b17085f36a9b16344ccaf01144af8c934 mod_console: Update !! shortcut for new connection API diff -r a81c710b1708 -r d04b0eeeb954 plugins/mod_console.lua --- 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