2023-11-26 19:59:12 -08:00
|
|
|
#pragma once
|
|
|
|
|
2023-11-27 14:12:20 -08:00
|
|
|
#include "event.hpp"
|
2023-11-26 19:59:12 -08:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class Connection;
|
|
|
|
|
|
|
|
struct CommandEvent : Event
|
|
|
|
{
|
|
|
|
std::string_view oper;
|
|
|
|
std::string_view account;
|
|
|
|
std::string_view nick;
|
|
|
|
std::string_view command;
|
|
|
|
std::string_view arg;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct CommandThread
|
|
|
|
{
|
|
|
|
static auto start(Connection&) -> void;
|
2023-11-27 14:12:20 -08:00
|
|
|
};
|