From e39d90442dfd6fb136cda23b0d013da98fb089e9 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 5 Jul 2025 18:12:43 +0500 Subject: feat: parse irc messages fully --- bot/src/irc/message.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bot/src/irc/message.hpp') diff --git a/bot/src/irc/message.hpp b/bot/src/irc/message.hpp index 54b911b..ae903ba 100644 --- a/bot/src/irc/message.hpp +++ b/bot/src/irc/message.hpp @@ -14,6 +14,14 @@ namespace bot { enum MessageType { Privmsg, Ping, Notice }; std::optional define_message_type(const std::string &msg); + struct IRCMessage { + std::map tags; + std::string prefix, nick, command; + std::vector params; + + static std::optional from_string(std::string msg); + }; + struct MessageSender { std::string login; std::string display_name; -- cgit v1.2.3