From 9f49baa6ad15ed241505addabcefbf63c1aaaec6 Mon Sep 17 00:00:00 2001 From: Eric Mertens Date: Tue, 28 Jan 2025 20:42:42 -0800 Subject: [PATCH] set challenge slot --- challenge.cpp | 2 +- irc_command.hpp | 1 + irc_commands.gperf | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/challenge.cpp b/challenge.cpp index 161edda..824e38d 100644 --- a/challenge.cpp +++ b/challenge.cpp @@ -84,7 +84,7 @@ error: auto Challenge::start(Connection &connection, const std::string_view user, EVP_PKEY_Ref ref) -> std::shared_ptr { auto self = std::make_shared(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); return self; } diff --git a/irc_command.hpp b/irc_command.hpp index a2895db..a673a47 100644 --- a/irc_command.hpp +++ b/irc_command.hpp @@ -270,6 +270,7 @@ enum class IrcCommand NOTICE, PART, PING, + PONG, PRIVMSG, QUIT, SETNAME, diff --git a/irc_commands.gperf b/irc_commands.gperf index f15f66a..34709d6 100644 --- a/irc_commands.gperf +++ b/irc_commands.gperf @@ -272,6 +272,7 @@ NICK, IrcCommand::NICK, 1, 1 NOTICE, IrcCommand::NOTICE, 2, 2 PART, IrcCommand::PART, 1, 2 PING, IrcCommand::PING, 1, 1 +PONG, IrcCommand::PONG, 1, 2 PRIVMSG, IrcCommand::PRIVMSG, 2, 2 QUIT, IrcCommand::QUIT, 1, 1 SETNAME, IrcCommand::SETNAME, 1, 1