diff options
author | louiz’ <louiz@louiz.org> | 2020-08-16 16:09:13 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2020-08-16 16:09:13 +0200 |
commit | f548f63178508936e36ac42e39d7ca0f064dcfb1 (patch) | |
tree | 2f177e03a76ef05b0f279544d4196beb6f859da4 /src/irc/irc_message.hpp | |
parent | d016010333c7c093235f8d2cb8005109d205b2e1 (diff) | |
parent | b98434b5d04d1ada9b24475e17ee8947d96ad1e3 (diff) | |
download | biboumi-f548f63178508936e36ac42e39d7ca0f064dcfb1.tar.gz biboumi-f548f63178508936e36ac42e39d7ca0f064dcfb1.tar.bz2 biboumi-f548f63178508936e36ac42e39d7ca0f064dcfb1.tar.xz biboumi-f548f63178508936e36ac42e39d7ca0f064dcfb1.zip |
Merge branch 'v9'
Diffstat (limited to 'src/irc/irc_message.hpp')
-rw-r--r-- | src/irc/irc_message.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/irc/irc_message.hpp b/src/irc/irc_message.hpp index 269a12a..5475fd2 100644 --- a/src/irc/irc_message.hpp +++ b/src/irc/irc_message.hpp @@ -4,11 +4,13 @@ #include <vector> #include <string> #include <ostream> +#include <sstream> class IrcMessage { public: - IrcMessage(std::string&& line); + IrcMessage(std::stringstream ss); + IrcMessage(std::string str): IrcMessage{std::stringstream{str}} {} IrcMessage(std::string&& prefix, std::string&& command, std::vector<std::string>&& args); IrcMessage(std::string&& command, std::vector<std::string>&& args); ~IrcMessage() = default; |