diff options
author | Florent Le Coz <louiz@louiz.org> | 2013-11-28 21:09:27 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2013-11-28 21:09:27 +0100 |
commit | d6832fbcc98557952387f3ce2899bbebacd7c204 (patch) | |
tree | efb57a0ce603489d2fb4d28b7bb6ed63eb7c0bdb /src | |
parent | 1151c26c363e736a98c5fcb723c753658fe35b9b (diff) | |
download | biboumi-d6832fbcc98557952387f3ce2899bbebacd7c204.tar.gz biboumi-d6832fbcc98557952387f3ce2899bbebacd7c204.tar.bz2 biboumi-d6832fbcc98557952387f3ce2899bbebacd7c204.tar.xz biboumi-d6832fbcc98557952387f3ce2899bbebacd7c204.zip |
:3
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/irc_client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp index dc0986f..2d158fb 100644 --- a/src/irc/irc_client.cpp +++ b/src/irc/irc_client.cpp @@ -91,7 +91,8 @@ void IrcClient::send_message(IrcMessage&& message) res += std::move(message.command); for (const std::string& arg: message.arguments) { - if (arg.find(" ") != std::string::npos) + if (arg.find(" ") != std::string::npos || + (!arg.empty()) && arg[0] == ':') { res += " :" + arg; break; |