diff --git a/chat_messages.hpp b/chat_messages.hpp index cb2b03e..4ebe687 100644 --- a/chat_messages.hpp +++ b/chat_messages.hpp @@ -33,6 +33,9 @@ namespace chat std::string get() const { return byte(_header) + _content + byte(message::TERM); } + + std::string get_content() const + { return _content; } }; std::ostream& operator<<(std::ostream& os, const chat_message& msg)