From b205f96a13cb16b9d284586571fa28cfb790436a Mon Sep 17 00:00:00 2001 From: Shaun Daley Date: Wed, 19 Aug 2015 01:38:32 +0200 Subject: [PATCH] bug fix: in DHTChat tool, signed message should emit entire line --- tools/dhtchat.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/dhtchat.cpp b/tools/dhtchat.cpp index bbf27a54..19ec7aac 100644 --- a/tools/dhtchat.cpp +++ b/tools/dhtchat.cpp @@ -116,7 +116,8 @@ main(int argc, char **argv) std::cout << "Message publishing failed !" << std::endl; }); } else { - dht.putSigned(room, dht::ImMessage(std::move(op)), [](bool ok) { + std::getline(iss, line); + dht.putSigned(room, dht::ImMessage(std::move(line)), [](bool ok) { //dht.cancelPut(room, id); if (not ok) std::cout << "Message publishing failed !" << std::endl;