xbot/irc_parse_thread.cpp
2023-11-25 20:09:20 -08:00

11 lines
285 B
C++

#include "irc_parse_thread.hpp"
#include "connection.hpp"
auto irc_parse_thread(Connection * connection) -> void
{
connection->add_listener<LineEvent>([connection](LineEvent const& event)
{
connection->make_event<IrcMsgEvent>(parse_irc_message(event.line));
});
}