Mercurial > irccd
comparison irccdctl/cli.cpp @ 348:24b1709093e7
Irccdctl: resurrect
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sun, 13 Nov 2016 14:16:58 +0100 |
parents | 006452e4a997 |
children | b59767d7f3d3 |
comparison
equal
deleted
inserted
replaced
347:ec43b9ac3df7 | 348:24b1709093e7 |
---|---|
69 throw; | 69 throw; |
70 } | 70 } |
71 | 71 |
72 irccdctl.client().onMessage.disconnect(id); | 72 irccdctl.client().onMessage.disconnect(id); |
73 | 73 |
74 std::cout << msg << std::endl; | |
75 | |
76 if (!msg.is_object()) | 74 if (!msg.is_object()) |
77 throw std::runtime_error("no response received"); | 75 throw std::runtime_error("no response received"); |
78 if (util::json::getString(msg, "command") != m_name) | 76 if (util::json::getString(msg, "command") != m_name) |
79 throw std::runtime_error("unexpected command result received"); | 77 throw std::runtime_error("unexpected command result received"); |
80 | 78 |