summaryrefslogtreecommitdiff
path: root/telnet_connection.cpp
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-01-02 03:55:52 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2011-01-02 03:55:52 +0100
commite19efcb8e7ba2cf4d4ce59c5f76e78a41a19ba24 (patch)
treeef89bb164d0e06f30396e84804cbc33c074ac065 /telnet_connection.cpp
parent0473fa912e2d2531529fec14a201efa3b20e2ef3 (diff)
Command handling changes as a result of adding the update command.
Diffstat (limited to 'telnet_connection.cpp')
-rw-r--r--telnet_connection.cpp3
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';