summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-11-28 21:09:27 +0100
committerFlorent Le Coz <louiz@louiz.org>2013-11-28 21:09:27 +0100
commitd6832fbcc98557952387f3ce2899bbebacd7c204 (patch)
treeefb57a0ce603489d2fb4d28b7bb6ed63eb7c0bdb /src
parent1151c26c363e736a98c5fcb723c753658fe35b9b (diff)
downloadbiboumi-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.cpp3
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;