summaryrefslogtreecommitdiff
path: root/bot/src/irc/message.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/irc/message.hpp')
-rw-r--r--bot/src/irc/message.hpp8
1 files changed, 8 insertions, 0 deletions
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<MessageType> define_message_type(const std::string &msg);
+ struct IRCMessage {
+ std::map<std::string, std::string> tags;
+ std::string prefix, nick, command;
+ std::vector<std::string> params;
+
+ static std::optional<IRCMessage> from_string(std::string msg);
+ };
+
struct MessageSender {
std::string login;
std::string display_name;