xbot/irc_parse_thread.cpp

11 lines
285 B
C++
Raw Normal View History

2023-11-25 09:22:55 -08:00
#include "irc_parse_thread.hpp"
#include "connection.hpp"
2023-11-25 20:09:20 -08:00
auto irc_parse_thread(Connection * connection) -> void
2023-11-25 09:22:55 -08:00
{
2023-11-25 20:09:20 -08:00
connection->add_listener<LineEvent>([connection](LineEvent const& event)
2023-11-25 09:22:55 -08:00
{
2023-11-25 20:09:20 -08:00
connection->make_event<IrcMsgEvent>(parse_irc_message(event.line));
});
2023-11-25 09:22:55 -08:00
}