diff options
Diffstat (limited to 'telnet_connection.cpp')
-rw-r--r-- | telnet_connection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<std::string> 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'; |