add log on join
This commit is contained in:
parent
3044b0db60
commit
5c3784e7ce
@ -2,20 +2,19 @@
|
|||||||
|
|
||||||
#include "./components.hpp"
|
#include "./components.hpp"
|
||||||
|
|
||||||
#include <sodium/crypto_hash_sha256.h>
|
|
||||||
#include <solanaceae/contact/components.hpp>
|
#include <solanaceae/contact/components.hpp>
|
||||||
|
#include <solanaceae/util/utils.hpp>
|
||||||
|
|
||||||
#include <libirc_rfcnumeric.h>
|
#include <libirc_rfcnumeric.h>
|
||||||
#include <libircclient.h>
|
#include <libircclient.h>
|
||||||
|
|
||||||
#include <sodium.h>
|
#include <sodium/crypto_hash_sha256.h>
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
|
||||||
IRCClientContactModel::IRCClientContactModel(
|
IRCClientContactModel::IRCClientContactModel(
|
||||||
Contact3Registry& cr,
|
Contact3Registry& cr,
|
||||||
ConfigModelI& conf,
|
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::Name>(std::string{joined_channel_name});
|
||||||
|
|
||||||
channel.emplace_or_replace<Contact::Components::ID>(getIDHash(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);
|
channel.emplace_or_replace<Contact::Components::ConnectionState>(Contact::Components::ConnectionState::State::cloud);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user