From e19efcb8e7ba2cf4d4ce59c5f76e78a41a19ba24 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sun, 2 Jan 2011 03:55:52 +0100 Subject: Command handling changes as a result of adding the update command. --- telnet_connection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'telnet_connection.cpp') diff --git a/telnet_connection.cpp b/telnet_connection.cpp index 457d1ba..c9089a9 100644 --- a/telnet_connection.cpp +++ b/telnet_connection.cpp @@ -34,7 +34,8 @@ void telnet::Connection::handle_read(const boost::system::error_code& error, siz std::vector r; try { - r = commands::execute(args); + commands::Commands cmd(socket.get_io_service(), args); + r = cmd(); } catch(commands::CommandException& ce) { std::string s(ce.what()); s += '\n'; -- cgit v1.2.3