set challenge slot

This commit is contained in:
Eric Mertens 2025-01-28 20:42:42 -08:00
parent 1aa56453cc
commit 9f49baa6ad
3 changed files with 3 additions and 1 deletions

View File

@ -84,7 +84,7 @@ error:
auto Challenge::start(Connection &connection, const std::string_view user, EVP_PKEY_Ref ref) -> std::shared_ptr<Challenge> auto Challenge::start(Connection &connection, const std::string_view user, EVP_PKEY_Ref ref) -> std::shared_ptr<Challenge>
{ {
auto self = std::make_shared<Challenge>(std::move(ref), connection); auto self = std::make_shared<Challenge>(std::move(ref), connection);
connection.sig_ircmsg.connect([self](auto cmd, auto &msg) { self->on_ircmsg(cmd, msg); }); self->slot_ = connection.sig_ircmsg.connect([self](auto cmd, auto &msg) { self->on_ircmsg(cmd, msg); });
connection.send_challenge(user); connection.send_challenge(user);
return self; return self;
} }

View File

@ -270,6 +270,7 @@ enum class IrcCommand
NOTICE, NOTICE,
PART, PART,
PING, PING,
PONG,
PRIVMSG, PRIVMSG,
QUIT, QUIT,
SETNAME, SETNAME,

View File

@ -272,6 +272,7 @@ NICK, IrcCommand::NICK, 1, 1
NOTICE, IrcCommand::NOTICE, 2, 2 NOTICE, IrcCommand::NOTICE, 2, 2
PART, IrcCommand::PART, 1, 2 PART, IrcCommand::PART, 1, 2
PING, IrcCommand::PING, 1, 1 PING, IrcCommand::PING, 1, 1
PONG, IrcCommand::PONG, 1, 2
PRIVMSG, IrcCommand::PRIVMSG, 2, 2 PRIVMSG, IrcCommand::PRIVMSG, 2, 2
QUIT, IrcCommand::QUIT, 1, 1 QUIT, IrcCommand::QUIT, 1, 1
SETNAME, IrcCommand::SETNAME, 1, 1 SETNAME, IrcCommand::SETNAME, 1, 1