xbot/irc_parse_thread.hpp

20 lines
387 B
C++
Raw Normal View History

2023-11-25 09:22:55 -08:00
#pragma once
#include "thread.hpp"
class Connection;
struct IrcMsgEvent : Event
{
IrcMsgEvent(IrcMsg irc) : irc{irc} {}
IrcMsg irc;
};
struct IrcParseThread : Thread
{
Connection * connection_;
IrcParseThread(Connection * connection) noexcept;
auto priority() const -> priority_type override;
auto on_event(Event const& event) -> callback_result override;
};