Fixed spacing.
This commit is contained in:
parent
80269a53e4
commit
763277dd9b
@ -100,14 +100,16 @@ void NeoComm_free_message(struct message *msg) {
|
|||||||
|
|
||||||
int NeoComm_send_message(const char *channel_name, const char *message) {
|
int NeoComm_send_message(const char *channel_name, const char *message) {
|
||||||
const dht::InfoHash chan_hash = channels[channel_name].hash;
|
const dht::InfoHash chan_hash = channels[channel_name].hash;
|
||||||
const time_t now = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
|
const time_t now =
|
||||||
|
std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
|
||||||
|
|
||||||
if(channels.find(channel_name) == channels.end())
|
if(channels.find(channel_name) == channels.end())
|
||||||
{
|
{
|
||||||
add_error("Not connected to channel");
|
add_error("Not connected to channel");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
node.putSigned(chan_hash, dht::ImMessage(rand_id(rand_dev), message, now), [](bool sent) {
|
node.putSigned(chan_hash,
|
||||||
|
dht::ImMessage(rand_id(rand_dev), message, now), [](bool sent) {
|
||||||
// TODO: Figure out what to do here for failed messages.
|
// TODO: Figure out what to do here for failed messages.
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user