add log on join

This commit is contained in:
Green Sky 2024-01-13 22:37:05 +01:00
parent 3044b0db60
commit 5c3784e7ce
No known key found for this signature in database

View File

@ -2,20 +2,19 @@
#include "./components.hpp"
#include <sodium/crypto_hash_sha256.h>
#include <solanaceae/contact/components.hpp>
#include <solanaceae/util/utils.hpp>
#include <libirc_rfcnumeric.h>
#include <libircclient.h>
#include <sodium.h>
#include <sodium/crypto_hash_sha256.h>
#include <cstdint>
#include <string_view>
#include <vector>
#include <iostream>
IRCClientContactModel::IRCClientContactModel(
Contact3Registry& cr,
ConfigModelI& conf,
@ -306,6 +305,7 @@ bool IRCClientContactModel::onEvent(const IRCClient::Events::Join& e) {
channel.emplace_or_replace<Contact::Components::Name>(std::string{joined_channel_name});
channel.emplace_or_replace<Contact::Components::ID>(getIDHash(joined_channel_name));
std::cout << "IRCCCM: joined '" << joined_channel_name << "' id:" << bin2hex(channel.get<Contact::Components::ID>().data) << "\n";
channel.emplace_or_replace<Contact::Components::ConnectionState>(Contact::Components::ConnectionState::State::cloud);