xbot/ping_thread.cpp
2025-01-23 12:46:52 -08:00

16 lines
327 B
C++

#include "ping_thread.hpp"
#include "connection.hpp"
#include "write_irc.hpp"
auto PingThread::start(Connection& connection) -> void
{
connection.sig_ircmsg.connect([&connection](auto cmd, auto& msg)
{
if (IrcCommand::PING == cmd)
{
send_pong(connection, msg.args[0]);
}
});
}