summaryrefslogtreecommitdiff
path: root/src/irc/irc_message.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/irc_message.cpp')
-rw-r--r--src/irc/irc_message.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/irc_message.cpp b/src/irc/irc_message.cpp
index 18fa3ec..eb3eb47 100644
--- a/src/irc/irc_message.cpp
+++ b/src/irc/irc_message.cpp
@@ -9,7 +9,7 @@ IrcMessage::IrcMessage(std::string&& line)
if (line[0] == ':')
{
pos = line.find(" ");
- this->prefix = line.substr(1, pos);
+ this->prefix = line.substr(1, pos - 1);
line = line.substr(pos + 1, std::string::npos);
}
// command