set challenge slot
This commit is contained in:
parent
1aa56453cc
commit
9f49baa6ad
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -270,6 +270,7 @@ enum class IrcCommand
|
|||||||
NOTICE,
|
NOTICE,
|
||||||
PART,
|
PART,
|
||||||
PING,
|
PING,
|
||||||
|
PONG,
|
||||||
PRIVMSG,
|
PRIVMSG,
|
||||||
QUIT,
|
QUIT,
|
||||||
SETNAME,
|
SETNAME,
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user